Create .htaccess file with Cache-Control

This commit is contained in:
Leilukin 2024-07-28 20:05:50 +08:00 committed by Helen Chong
parent c3beeb0df8
commit 7e0207432b

8
src/.htaccess.njk Normal file
View File

@ -0,0 +1,8 @@
---
permalink: .htaccess
eleventyExcludeFromCollections: true
---
<FilesMatch "\.(ico|svg|avif|jpg|png|gif|js|css|woff2)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>