Add cache policy

This commit is contained in:
Helen Chong 2024-08-20 08:52:03 +08:00
parent 91d3de5db2
commit e6dec079f9
1 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,10 @@
<FilesMatch "\.(ico|svg|avif|webp|jpg|jpeg|png|gif|woff2)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
<FilesMatch "\.(css|js)$">
Header set Cache-Control "no-cache, public"
</FilesMatch>
# Template to enable clean URLs for the Apache web server. # Template to enable clean URLs for the Apache web server.
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine On RewriteEngine On