Skip to content

Commit 56c4cca

Browse files
author
Oleksandr Dubovyk
committed
Merge remote-tracking branch 'chaika/MAGETWO-93708' into chaika_ports
2 parents 8e9ef18 + 631bd09 commit 56c4cca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nginx.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ location /static/ {
102102
rewrite ^/static/(version[^/]+/)?(.*)$ /static/$2 last;
103103
}
104104

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)$ {
106106
add_header Cache-Control "public";
107107
add_header X-Frame-Options "SAMEORIGIN";
108108
expires +1y;

pub/static/.htaccess

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ AddType application/xml xml
6767

6868
<IfModule mod_headers.c>
6969

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)$>
7171
Header append Cache-Control public
7272
</FilesMatch>
7373

@@ -97,12 +97,13 @@ AddType application/xml xml
9797
ExpiresByType application/x-bzip2 "access plus 0 seconds"
9898

9999
# CSS, JavaScript, html
100-
<FilesMatch \.(css|js|html)$>
100+
<FilesMatch \.(css|js|html|json)$>
101101
ExpiresDefault "access plus 1 year"
102102
</FilesMatch>
103103
ExpiresByType text/css "access plus 1 year"
104104
ExpiresByType text/html "access plus 1 year"
105105
ExpiresByType application/javascript "access plus 1 year"
106+
ExpiresByType application/json "access plus 1 year"
106107

107108
# Favicon, images, flash
108109
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg)$>

0 commit comments

Comments
 (0)