Created
December 28, 2016 07:30
-
-
Save simion/098ead5b64b3fc5dd25c1206ce400983 to your computer and use it in GitHub Desktop.
Enable leverage browser caching in apache virtualhost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost> | |
# .... | |
<IfModule mod_expires.c> | |
<FilesMatch "\.(css|ico|pdf|flv|jpg|jpeg|png|gif|js|swf)$"> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 year" | |
</FilesMatch> | |
</IfModule> | |
# .... | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment