File: /storage/v4513/nginx/ivenusin-prelocation.conf
location ~* \.html$ {
charset UTF-8;
add_header x-spdn-cache NGX-HIT;
add_header cache-control "no-cache, must-revalidate, max-age=0";
}
set $spdn_cache 1;
set $spdn_url "/wp-content/cache/speedien/$http_host/$request_uri/index.html";
set $spdn_file "$document_root/wp-content/cache/speedien/$http_host/$request_uri/index.html";
if ($request_method = POST) {
set $spdn_cache 0;
}
if ($is_args) {
set $spdn_cache 0;
}
if ($http_cookie ~* "(wp\-postpass|wordpress_logged_in|comment_author|woocommerce_cart_hash|edd_items_in_cart)") {
set $spdn_cache 0;
}
if (!-f "$spdn_file") {
set $spdn_cache 0;
}
if ($spdn_cache = 1) {
rewrite .* "$spdn_url" last;
}