Skip to content

Commit

Permalink
add http_x_http_method_override var to fastcgi_cache_key directive (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AltanS authored Jan 27, 2025
1 parent 19b4bf6 commit ae31b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/nginx/templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ http {
fastcgi_cache_path {{ nginx_cache_path }} levels=1:2 keys_zone=wordpress:{{ nginx_cache_key_storage_size }} max_size={{ nginx_cache_size }} inactive={{ nginx_cache_inactive }};
fastcgi_cache_use_stale updating error timeout invalid_header http_500;
fastcgi_cache_lock on;
fastcgi_cache_key $realpath_root$scheme$host$request_uri$request_method$http_origin;
fastcgi_cache_key $realpath_root$scheme$host$request_uri$request_method$http_origin$http_x_http_method_override;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
fastcgi_pass_header Set-Cookie;
fastcgi_pass_header Cookie;
Expand Down

0 comments on commit ae31b0f

Please sign in to comment.