roles/nginx: Move some common fastcgi settings out of vhost template
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
@ -61,10 +61,6 @@ server {
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_cache global;
|
||||
# HTTP responses to cache (default 200, 301, 302)
|
||||
fastcgi_cache_valid 1h;
|
||||
# Allow use of stale entries if the cache is updating
|
||||
fastcgi_cache_use_stale updating;
|
||||
# Set X-Fastcgi-Cache header to "HIT", "MISS", "BYPASS", etc
|
||||
add_header X-Fastcgi-Cache $upstream_cache_status;
|
||||
# Don't cache when user shift-refreshes (Pragma: no-cache) or when a user is logged in!
|
||||
|
Reference in New Issue
Block a user