BlueGit

projects-timfalken-com meteors

Files

meteors / server / .htaccess

.htaccess

.htaccess 977 B Download Raw
1Options -Indexes
2DirectoryIndex index.html index.php
3
4<FilesMatch "^(router\.php|README\.md)$">
5 Require all denied
6</FilesMatch>
7
8<IfModule mod_headers.c>
9 Header always set X-Content-Type-Options "nosniff"
10 Header always set Referrer-Policy "same-origin"
11</IfModule>
12
13# PHP endpoints should not be cached.
14<IfModule mod_headers.c>
15 <FilesMatch "\.(php)$">
16 Header set Cache-Control "no-store"
17 </FilesMatch>
18</IfModule>
19
20# t1256: HTML must be revalidated so new asset hashes take effect.
21# Versioned JS/CSS/JSON (see ?v= from src/build.sh) can be cached long.
22# The host serves PHP through Apache-style rules; static files may be
23# served by nginx and then these FilesMatch rules do not apply — the
24# query-string hashes still bust the cache.
25<IfModule mod_headers.c>
26 <FilesMatch "\.(html)$">
27 Header set Cache-Control "no-cache"
28 </FilesMatch>
29 <FilesMatch "\.(js|css|json)$">
30 Header set Cache-Control "public, max-age=31536000, immutable"
31 </FilesMatch>
32</IfModule>