Skip to content

Commit 1d22647

Browse files
Merge remote-tracking branch '40135/fix-39756' into comprs_oct
2 parents 8aa02bb + 8c28b95 commit 1d22647

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nginx.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ location /media/ {
164164
# image_filter_jpeg_quality 90;
165165
# }
166166

167-
try_files $uri $uri/ /get.php$is_args$args;
167+
# try_files $uri $uri/ /get.php$is_args$args;
168168

169169
location ~ ^/media/theme_customization/.*\.xml {
170170
deny all;
@@ -180,7 +180,7 @@ location /media/ {
180180
add_header Cache-Control "no-store";
181181
add_header X-Frame-Options "SAMEORIGIN";
182182
expires off;
183-
try_files $uri $uri/ /get.php$is_args$args;
183+
# try_files $uri $uri/ /get.php$is_args$args;
184184
}
185185
add_header X-Frame-Options "SAMEORIGIN";
186186
}

pub/media/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SetHandler default-handler
3333
############################################
3434
## rewrite everything else to get.php
3535

36-
RewriteRule .* ../get.php [L]
36+
RewriteRule .*.(ico|jpg|jpeg|png|gif|svg|svgz|webp|avif|avifs|js|css|eot|ttf|otf|woff|woff2)$ ../get.php [L]
3737
</IfModule>
3838

3939
############################################

0 commit comments

Comments
 (0)