File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
files/etc/nginx/sites-enabled Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ server {
66
66
67
67
# valid for "any" http status within 10 minutes
68
68
proxy_cache_valid any 10m;
69
+ proxy_cache_valid 301 302 307 0s;
70
+ proxy_cache_key $request_uri;
69
71
70
72
# only allow GET method
71
73
proxy_method GET;
@@ -226,7 +228,6 @@ server {
226
228
internal;
227
229
228
230
proxy_pass $clean_uri;
229
- proxy_cache_key $request_uri$slice_range;
230
231
include /etc/nginx/sites-enabled/proxy-hide-headers.common;
231
232
232
233
add_header X-ImageProxy-Cache $upstream_cache_status;
@@ -247,7 +248,6 @@ server {
247
248
internal;
248
249
249
250
proxy_pass $clean_uri;
250
- proxy_cache_key $request_uri$slice_range;
251
251
include /etc/nginx/sites-enabled/proxy-hide-headers.common;
252
252
253
253
add_header X-ImageProxy-Cache $upstream_cache_status;
@@ -268,6 +268,7 @@ server {
268
268
location @handle_redirect {
269
269
set $image_uri "$upstream_http_location";
270
270
set_unescape_uri $clean_uri "http://127.0.0.1/rx/$myargs/$image_uri";
271
+ proxy_cache_bypass 1;
271
272
proxy_pass $clean_uri;
272
273
}
273
274
You can’t perform that action at this time.
0 commit comments