mirror of
https://github.com/Mibew/mibew.git
synced 2025-06-02 23:32:33 +03:00
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:
parent
3c0c880661
commit
d6947d4a97
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user