File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ location /static/ {
103
103
rewrite ^/static/(version[^/]+/)?(.*)$ /static/$2 last;
104
104
}
105
105
106
- location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2)$ {
106
+ location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|json )$ {
107
107
add_header Cache-Control "public";
108
108
add_header X-Frame-Options "SAMEORIGIN";
109
109
expires +1y;
Original file line number Diff line number Diff line change @@ -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