From a6e34aa3a6626d8a28a258c17bfedd77e48567ab Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 6 Jun 2020 11:07:47 +0100 Subject: [PATCH] Extra cache exclusion --- gemini/EN/install.gmi | 5 +++++ website/EN/index.html | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gemini/EN/install.gmi b/gemini/EN/install.gmi index 803bfa70..a1ef99f5 100644 --- a/gemini/EN/install.gmi +++ b/gemini/EN/install.gmi @@ -136,6 +136,11 @@ And paste the following: proxy_no_cache 1; proxy_pass http://localhost:7156; } + location ~ ^/users/(.*)/(image|banner).png { + expires epoch; + proxy_no_cache 1; + proxy_pass http://localhost:7156; + } proxy_pass http://localhost:7156; } } diff --git a/website/EN/index.html b/website/EN/index.html index 32027f22..fc31c503 100644 --- a/website/EN/index.html +++ b/website/EN/index.html @@ -1416,6 +1416,11 @@ proxy_no_cache 1;
proxy_pass http://localhost:7156;
}
+ location ~ ^/users/(.*)/(image|banner).png {
+ expires epoch;
+ proxy_no_cache 1;
+ proxy_pass http://localhost:7156;
+ }
proxy_pass http://localhost:7156;
}
}