forked from browser-update/browser-update
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_.htaccess
56 lines (38 loc) · 1.47 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
RewriteEngine On
#RewriteCond %{HTTP_HOST} !^browser-update\.org$
#RewriteRule ^/?(.*)$ http://browser-update.org/$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([a-z]{2}(-|_[a-zA-Z]{2})?)/update\.html$ update-browser.php?lang=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?update\.html$ update-browser.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([a-zA-Z0-9_-]+)\.html$ $1.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([a-z]{2}(-|_[a-zA-Z]{2})?)/([a-zA-Z0-9_-]+)\.html$ $3.php?lang=$1 [L,QSA]
RewriteRule ^/?([a-z]{2}(-|_[a-zA-Z]{2})?)/$ index.php?lang=$1 [L,QSA]
AddCharset utf-8 .js
#4 days cache for the files
<FilesMatch "update.js">
Header set Cache-Control "public, max-age=1296000"
ExpiresDefault "access plus 15 days"
SetOutputFilter DEFLATE
</FilesMatch>
<FilesMatch "update.min.js">
Header set Cache-Control "public, max-age=1296000"
ExpiresDefault "access plus 15 days"
SetOutputFilter DEFLATE
</FilesMatch>
#no cache
<FilesMatch "updatex.js">
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
SetOutputFilter DEFLATE
</FilesMatch>
<FilesMatch "dialog-warning.gif">
Header set Cache-Control "public, max-age=2419200"
</FilesMatch>