Skip to content

Commit

Permalink
Improve Nginx fastcgi cache purging rules
Browse files Browse the repository at this point in the history
  • Loading branch information
joglomedia committed Aug 4, 2024
1 parent 101415a commit b1a709a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/nginx/fastcgi_cache
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ map $request_method $purge_method {
map $request_method $skip_cache {
default 0;
POST 1;
PURGE 1;
}

# Skip caching for mobile device.
Expand All @@ -43,4 +44,5 @@ map $http_user_agent $is_mobile {
map $request_method $cache_uri {
default $request_uri;
POST "null cache";
PURGE "null cache";
}

0 comments on commit b1a709a

Please sign in to comment.