-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
33 lines (31 loc) · 1.12 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This file contains information to force the browser to cache certain
# information such as stagnant data, shaders, and javascript files.
#
# This file causes unnecessary queries to the server to be minimized (instead
# of the client waiting ~300ms per file [interleaved] for just a HTTP 304
# response, the browser will just load the file from its cache).
#
# A forced-reload of the page (ctrl-F5) will cause the browser to forgo its
# cache and grab resources from the webserver anew.
<ifModule mod_mime.c>
AddType text/plain vs fs
AddType text/plain dat csv
</ifModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresByType text/plain "access plus 1 day"
ExpiresDefault "access plus 1 hour"
</ifModule>
<ifModule mod_headers.c>
<filesMatch "\.(dat|csv|js)$">
Header append Cache-Control "public"
</filesMatch>
<filesMatch "\.(fs|vs|jpe?g|png|gif|css)$">
Header append Cache-Control "public"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header append Cache-Control "private, must-revalidate"
</filesMatch>
</ifModule>
php_flag display_errors on
php_value error_reporting 2039