Add jpeg files to Cache-Control settting

This commit is contained in:
Leilukin 2024-08-04 17:58:06 +08:00 committed by Helen Chong
parent 32e1b1fd6d
commit eed27964bd

View File

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