Skip to content
Snippets Groups Projects
Commit 2839c82e authored by Fabrice Gangler's avatar Fabrice Gangler :art:
Browse files

CHORE: add HTTP "Cache-Control: immutable" headers for JS files

parent 50b522c9
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,16 @@ ErrorDocument 404 /404.html
</ifModule>
</filesMatch>
######################################################################################
# Caching JS files
######################################################################################
<IfModule mod_headers.c>
# <FilesMatch "\.(js|css)$">
<FilesMatch "\.js$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
</IfModule>
######################################################################################
# Security
######################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment