File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ location /static/ {
102
102
rewrite ^/static/(version[^/]+/)?(.*)$ /static/$2 last;
103
103
}
104
104
105
- location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
105
+ location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|json )$ {
106
106
add_header Cache-Control "public";
107
107
add_header X-Frame-Options "SAMEORIGIN";
108
108
expires +1y;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ AddType application/xml xml
67
67
68
68
<IfModule mod_headers.c >
69
69
70
- <FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ >
70
+ <FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|json )$ >
71
71
Header append Cache-Control public
72
72
</FilesMatch >
73
73
@@ -97,12 +97,13 @@ AddType application/xml xml
97
97
ExpiresByType application/x-bzip2 "access plus 0 seconds"
98
98
99
99
# CSS, JavaScript, html
100
- <FilesMatch \.(css|js|html)$ >
100
+ <FilesMatch \.(css|js|html|json )$ >
101
101
ExpiresDefault "access plus 1 year"
102
102
</FilesMatch >
103
103
ExpiresByType text/css "access plus 1 year"
104
104
ExpiresByType text/html "access plus 1 year"
105
105
ExpiresByType application/javascript "access plus 1 year"
106
+ ExpiresByType application/json "access plus 1 year"
106
107
107
108
# Favicon, images, flash
108
109
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg)$ >
You can’t perform that action at this time.
0 commit comments