Initial commit build
Some checks failed
DitesLeEnChanson/site/pipeline/head There was a failure building this commit
Some checks failed
DitesLeEnChanson/site/pipeline/head There was a failure building this commit
This commit is contained in:
19
src/public/.htaccess
Normal file
19
src/public/.htaccess
Normal file
@@ -0,0 +1,19 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^ index.html [L]
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header set X-Powered-By "Hostinger Horizons"
|
||||
|
||||
# Cache everything on CDN by default
|
||||
Header set Cache-Control "public, s-maxage=604800, max-age=0"
|
||||
|
||||
# Cache in browser all assets
|
||||
<If "%{REQUEST_URI} =~ m#^/assets/.*$#">
|
||||
Header set Cache-Control "public, max-age=604800"
|
||||
</If>
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user