Skip to content

Commit 3e4956b

Browse files
ENGCOM-6189: Add Cache-Control header to knockout partials #25325
- Merge Pull Request #25325 from paveq/magento2:html-caching - Merged commits: 1. 8e17015 2. 8260aa3
2 parents 5b54f06 + 8260aa3 commit 3e4956b

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)