Merge pull request #2124 from nextcloud/oc_26591
Cache js, css and woff files for a week
This commit is contained in:
commit
a0059dfee1
|
@ -21,8 +21,13 @@
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Add cache control for static resources
|
# Add cache control for static resources
|
||||||
<FilesMatch "\.(css|js|woff|svg|gif)$">
|
<FilesMatch "\.(css|js|svg|gif)$">
|
||||||
Header set Cache-Control "max-age=7200, public"
|
Header set Cache-Control "max-age=15778463"
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
# Let browsers cache WOFF files for a week
|
||||||
|
<FilesMatch "\.woff$">
|
||||||
|
Header set Cache-Control "max-age=604800"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
<IfModule mod_php5.c>
|
<IfModule mod_php5.c>
|
||||||
|
|
Loading…
Reference in New Issue