Create .htaccess file with Cache-Control

This commit is contained in:
Helen Chong 2024-07-28 20:05:50 +08:00
parent 7d230eb196
commit a05f357e4b
1 changed files with 8 additions and 0 deletions

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>