summaryrefslogtreecommitdiff
path: root/installation
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2021-02-08 16:43:04 +0000
committerfeld <feld@feld.me>2021-02-08 16:43:04 +0000
commit85cb122986087062a192c31bc517f2698239819c (patch)
tree9f94d0bbf7bf8f68c272b43a779e49a4892e55b6 /installation
parent4dbb08a19f57e720e299608ebeb4387d37c55e99 (diff)
parent8babd796da46975c2d976cf87dad844c13e8a69e (diff)
downloadpleroma-85cb122986087062a192c31bc517f2698239819c.tar.gz
pleroma-85cb122986087062a192c31bc517f2698239819c.zip
Merge branch 'develop' into 'docs/improve-mailer-settings-desc'
# Conflicts: # CHANGELOG.md
Diffstat (limited to 'installation')
-rw-r--r--installation/pleroma.vcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/installation/pleroma.vcl b/installation/pleroma.vcl
index 13dad784c..4752510ea 100644
--- a/installation/pleroma.vcl
+++ b/installation/pleroma.vcl
@@ -59,6 +59,13 @@ sub vcl_backend_response {
set beresp.http.CR = beresp.http.content-range;
}
+ # Bypass cache for large files
+ # 50000000 ~ 50MB
+ if (std.integer(beresp.http.content-length, 0) > 50000000) {
+ set beresp.uncacheable = true;
+ return(deliver);
+ }
+
# Don't cache objects that require authentication
if (beresp.http.Authorization && !beresp.http.Cache-Control ~ "public") {
set beresp.uncacheable = true;