From 2dab3f7ceaabb72bb9df8ea82740c3801a03bf5f Mon Sep 17 00:00:00 2001 From: Claudio Wunder Date: Wed, 12 Jul 2023 15:28:55 +0200 Subject: [PATCH] chore: remove cache from 404 --- ansible/www-standalone/resources/config/nodejs.org | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ansible/www-standalone/resources/config/nodejs.org b/ansible/www-standalone/resources/config/nodejs.org index 4fa993ca0..f1f80c477 100644 --- a/ansible/www-standalone/resources/config/nodejs.org +++ b/ansible/www-standalone/resources/config/nodejs.org @@ -280,11 +280,6 @@ server { # as set by the @english_fallback location block # Otherwise, this will fallback to $lang being "en" as defined numerous lines above location @localized_404 { - # We disable caching of 404 pages as we always want Cloudflare to check if the file now exists - # Some 404s may be caused by the server reaching maximum concurrent file system open() requests - # Disabling cache allows Cloudflare to re-evaluate the same $uri once our server recovers and then properly cache it - add_header Cache-Control "private, no-store, max-age=0" always; - # If this was a rewritten i18n request from @english_fallback, use the localized 404 # If there is no 404 page for that locale, fallback to the English 404 # As a last resort, fallback to NGINX's default 404. This should never happen, and will emit a [crit]