Use no-cache policy forCSS and JavaScript files

This commit is contained in:
Leilukin 2024-07-31 00:29:05 +08:00 committed by Helen Chong
parent de53265999
commit 599cf24b3c

View File

@ -4,6 +4,9 @@ eleventyExcludeFromCollections: true
---
ErrorDocument 404 /404.html
<FilesMatch "\.(ico|svg|avif|jpg|png|gif|js|css|woff2)$">
<FilesMatch "\.(ico|svg|avif|jpg|png|gif|woff2)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
<FilesMatch "\.(css|js)$">
Header set Cache-Control "no-cache, public"
</FilesMatch>