Skip to content

Commit dea5411

Browse files
ENGCOM-6189: Add Cache-Control header to knockout partials #25325
2 parents 93178b5 + 3e4956b commit dea5411

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nginx.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ location /static/ {
109109
rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last;
110110
}
111111

112-
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|json)$ {
112+
location ~* \.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$ {
113113
add_header Cache-Control "public";
114114
add_header X-Frame-Options "SAMEORIGIN";
115115
expires +1y;

pub/static/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ AddType application/xml xml
7272

7373
<IfModule mod_headers.c>
7474

75-
<FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|json)$>
75+
<FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$>
7676
Header append Cache-Control public
7777
</FilesMatch>
7878

0 commit comments

Comments
 (0)