File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ <IfModule mod_headers.c >
2
+
3
+ Header set Connection keep-alive
4
+
5
+ Header unset Last-Modified
6
+
7
+ <FilesMatch "\.(js|css|xml|gz)$" >
8
+ Header append Vary Accept-Encoding
9
+ </FilesMatch >
10
+
11
+ <FilesMatch "\.(ico|jpeg|jpg|png|gif|swf|css)$" >
12
+ Header set Cache-Control "max-age=5184000 , public"
13
+ </FilesMatch >
14
+
15
+ <FilesMatch "\.(js)$" >
16
+ Header set Cache-Control "max-age=5184000 , private"
17
+ </FilesMatch >
18
+
19
+ <FilesMatch "\.(xhtml|html|htm|php)$" >
20
+ Header set Cache-Control "max-age=5184000 , private, must-revalidate"
21
+ </FilesMatch >
22
+
23
+ </IfModule >
24
+
25
+ <IfModule mod_expires.c >
26
+
27
+ <FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$" >
28
+ ExpiresActive On
29
+ ExpiresDefault "access plus 10 years"
30
+ </FilesMatch >
31
+
32
+ </IfModule >
33
+
1
34
RewriteEngine on
2
35
RewriteCond %{REQUEST_FILENAME} !-f
3
36
RewriteCond %{REQUEST_FILENAME} !-d
4
37
RewriteCond %{REQUEST_FILENAME} !-l
5
- RewriteRule ^(.*)$ /index.php
38
+ RewriteBase /
39
+ RewriteRule ^(.*)$ /index.php
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
header ( 'Content-Type: text/html; charset=utf-8 ' );
4
+ header ( 'Cache-Control: max-age=5184000, private, must-revalidate ' );
4
5
5
6
require_once '_q/bootstrap.php ' ;
6
7
You can’t perform that action at this time.
0 commit comments