Hi, Marko.
- /minify manually deleted
- http2 push disabled for JS & CSS minify
- Saved Settings & purged cache
- result: same issue – all JS & CSS broken in frontend. (/minify was recreated on the server automatically with the .htaccess file in it, though.)
The duplicate cache-control rules are there for some separate testing we’re doing.
All of these sites are using PHP 8.1.21 with PHP being run as an FPM application served by nginx. But to try to get W3 minify working, we’ve also tried them as FPM through apache.
There is also a special nginx caching level, but we’ve tried that both off and on – no difference.
We’ve also tried limiting what files nginx serves, like gzip for example, but regardless of that setting there is no minify.
The nginx.conf contents is below. Every time we made changes we checked this file, and previously there was a specific /minify section at the top, but now it’s not there whether or not minify is actually on.
Like I mentioned, this has been so difficult to troubleshoot because we have the same settings on all these different sites – same server and w3 settings – and it’s basically been random when a site stops minifying and never does again. We now have minify off on them all except 2 last ones. So at least they’re almost all acting the same at this point, but they all started off working with minify then at some point we’d do a Save Settings and Purge Cache and that was it – no more minify ever.
We’re set to do standard updates to the remaining 2 next month so we’ll pay close attention to them if at some point they suddenly stop minifying. Currently they’re already on the same settings as the others were, though. pdcamarketing.com and bluesageconsulting.com in case you want to review them.
Thank you.
BEGIN W3TC Minify cache END W3TC Minify cache BEGIN W3TC Page Cache cache END W3TC Page Cache cache BEGIN W3TC Browser Cache
location ~ .(css|htc|less|js|js2|js3|js4)$ {
etag off;
if_modified_since off;
try_files $uri $uri/ /index.php?$args;
}
location ~ .(html|htm|rtf|rtx|txt|xsd|xsl|xml)$ {
etag off;
if_modified_since off;
try_files $uri $uri/ /index.php?$args;
}
location ~ .(asf|asx|wax|wmv|wmx|avi|avif|avifs|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|ogv|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|_ttf|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ {
etag off;
if_modified_since off;
try_files $uri $uri/ /index.php?$args;
}
add_header Referrer-Policy “no-referrer-when-downgrade”; END W3TC Browser Cache BEGIN W3TC Minify core
set $w3tc_enc “”;
if (-f $request_filename$w3tc_enc) {
rewrite (.*) $1$w3tc_enc break;
}
rewrite ^/wp-content/cache/minify/ /index.php last; END W3TC Minify core BEGIN W3TC Page Cache core
set $w3tc_query_string $query_string;
if ($w3tc_query_string ~* “^(.?&|)_branch_match_id(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)_bta_c(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)_bta_tid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)_ga(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)_gl(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)_ke(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)adgroupid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)adid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)age-verified(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)ao_noptimize(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)campaignid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)campid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)cn-reloaded(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)customid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)dm_i(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)ef_id(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)epik(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)fb_action_ids(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)fb_action_types(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)fb_source(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)fbclid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)gclid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)gclsrc(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)gdffi(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)gdfms(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)gdftrk(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_acc(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_ad(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_cam(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_grp(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_kw(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_mt(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_net(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_src(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_tgt(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)hsa_ver(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)igshid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)matomo_campaign(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)matomo_cid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)matomo_content(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)matomo_group(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)matomo_keyword(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)matomo_medium(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)matomo_placement(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)matomo_source(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mc_cid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mc_eid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mkcid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mkevt(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mkrid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mkwid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)msclkid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mtm_campaign(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mtm_cid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mtm_content(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mtm_group(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mtm_keyword(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mtm_medium(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mtm_placement(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)mtm_source(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pcrid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)piwik_campaign(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)piwik_keyword(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)piwik_kwd(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pk_campaign(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pk_cid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pk_content(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pk_keyword(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pk_kwd(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pk_medium(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pk_source(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)pp(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)redirect_log_mongo_id(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)redirect_mongo_id(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)ref(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)s_kwcid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)sb_referer_host(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)si(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)sscid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)toolid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)trk_contact(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)trk_module(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)trk_msg(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)trk_sid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)usqp(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)utm_campaign(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)utm_content(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)utm_expid(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)utm_id(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)utm_medium(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)utm_source(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ “^(.?&|)utm_term(=[^&])?(&.|)$”) { set $w3tc_query_string $1$3; } if ($w3tc_query_string ~ ^[?&]+$) { set $w3tc_query_string “”; } set $w3tc_request_uri $request_uri; if ($w3tc_request_uri ~ “^([^?]+)\?”) {
set $w3tc_request_uri $1;
}
set $w3tc_rewrite 1;
if ($request_method = POST) {
set $w3tc_rewrite 0;
}
if ($w3tc_query_string != “”) {
set $w3tc_rewrite 0;
}
set $w3tc_slash “”;
if ($w3tc_request_uri ~ \/$) {
set $w3tc_slash _slash;
}
if ($http_cookie ~* “(comment_author|wp-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle)”) {
set $w3tc_rewrite 0;
}
set $w3tc_preview “”;
if ($http_cookie ~* “(w3tc_preview)”) {
set $w3tc_preview _preview;
}
set $w3tc_ssl “”;
if ($scheme = https) {
set $w3tc_ssl _ssl;
}
if ($http_x_forwarded_proto = ‘https’) {
set $w3tc_ssl _ssl;
}
set $w3tc_ext “”;
if (-f “$document_root/wp-content/cache/page_enhanced/$http_host/$w3tc_request_uri/_index$w3tc_slash$w3tc_ssl$w3tc_preview.html”) {
set $w3tc_ext .html;
}
if (-f “$document_root/wp-content/cache/page_enhanced/$http_host/$w3tc_request_uri/_index$w3tc_slash$w3tc_ssl$w3tc_preview.xml”) {
set $w3tc_ext .xml;
}
if ($w3tc_ext = “”) {
set $w3tc_rewrite 0;
}
if ($w3tc_rewrite = 1) {
rewrite .* “/wp-content/cache/page_enhanced/$http_host/$w3tc_request_uri/_index$w3tc_slash$w3tc_ssl$w3tc_preview$w3tc_ext” last;
} END W3TC Page Cache core
-
This reply was modified 1 year, 4 months ago by magestyx.