Added by the browser cache using .htaccess

Added by the browser cache for files (js|css|jpg|png|gif|svg) using .htaccess

Using this type of cache server to the requests will be lower, thus, the application will become faster.

The cache is configured for 2 days.
This commit is contained in:
Bruno Lima 2015-03-18 10:14:56 -03:00
parent 3c0c880661
commit d6947d4a97

View File

@ -51,3 +51,16 @@ Options +FollowSymLinks
<FilesMatch "\.(yml|po|ini|handlebars|keep)$">
Deny from all
</FilesMatch>
# Turn on Expires
ExpiresActive On
ExpiresDefault "access plus 2 days"
# Speed up caching
FileETag MTime Size
# Set up 2 days caching and specific cache-control for files
<FilesMatch "\.(.*)\.(js|css|jpg|png|gif|svg)$">
ExpiresDefault A172800
Header append Cache-Control "proxy-revalidate"
</FilesMatch>