mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Merge pull request #2124 from nextcloud/oc_26591
Cache js, css and woff files for a week
This commit is contained in:
commit
a0059dfee1
1 changed files with 7 additions and 2 deletions
|
|
@ -21,8 +21,13 @@
|
|||
</IfModule>
|
||||
|
||||
# Add cache control for static resources
|
||||
<FilesMatch "\.(css|js|woff|svg|gif)$">
|
||||
Header set Cache-Control "max-age=7200, public"
|
||||
<FilesMatch "\.(css|js|svg|gif)$">
|
||||
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>
|
||||
</IfModule>
|
||||
<IfModule mod_php5.c>
|
||||
|
|
|
|||
Loading…
Reference in a new issue