Skip to content

Commit 74cabf0

Browse files
committed
Adds expires headers for media/thumbnail
1 parent 1fd2e0e commit 74cabf0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roles/cs.nginx-magento/templates/magento_server_body.conf.j2

+4-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ location / {
9393

9494
location /media/catalog/product/thumbnail {
9595
auth_basic off;
96-
96+
add_header Cache-Control "public";
97+
add_header X-Frame-Options "SAMEORIGIN";
98+
expires +1y;
99+
97100
try_files $uri $uri/ /resize.php$is_args$args;
98101
}
99102

0 commit comments

Comments
 (0)