From 1513fc2a039f06a953bc120f9d325420eb03382b Mon Sep 17 00:00:00 2001 From: delzac Date: Fri, 18 Oct 2024 15:40:37 +0800 Subject: [PATCH] Enable NGINX caching to include query parameters Previously, NGINX caching will ignore any query parameters in the URI --- piku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piku.py b/piku.py index cc0cb46..74f4c1d 100755 --- a/piku.py +++ b/piku.py @@ -183,7 +183,7 @@ PIKU_INTERNAL_NGINX_CACHE_MAPPING = """ location ~* ^/($cache_prefixes) { uwsgi_cache $APP; uwsgi_cache_min_uses 1; - uwsgi_cache_key $host$uri; + uwsgi_cache_key $host$request_uri; uwsgi_cache_valid 200 304 $cache_time_content; uwsgi_cache_valid 301 307 $cache_time_redirects; uwsgi_cache_valid 500 502 503 504 0s;