Comments on: Configuring WordPress Browser Caching using W3 Total Cache https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache/ Create a Website with a WordPress Website Builder Fri, 22 Sep 2023 14:58:32 +0000 hourly 1 https://wordpress.org/?v=6.4.1 By: abitofmind https://www.boldgrid.com/support/w3-total-cache/configuring-browser-caching-in-w3-total-cache/#comment-84755 Fri, 05 May 2023 14:49:39 +0000 https://www.boldgrid.com/support/?p=18775#comment-84755 “Remove Query Strings From Static Resources”

I had wished for a bit deeper explanation.

E.g. consider example.com/green-trousers/

If you use campaign links like /green-trousers/?campaign=newsletter what does this your setting do?

1) Assumed you have no reverse proxy (like Varnish) in front of your origin server:

a) The origin server gets /green-trousers/?campaign=newsletter
b) and with a mod_rewrite rule in .htaccess redirects to /green-trousers/ which then gets served from cache?

Is it working like this?

Which records ends in your log? Only 1a or 1b or both? I assume both and that campaign measuring software can determine from the log that 1a and 1b belong together.

If you disable that will you end up with a cache-directory for each or the argument-variants for that static resource?

/green-trousers?campaign=newsletter/_index_slash_ssl.html
/green-trousers?campaign=newsletter/_index_slash_ssl.html_gzip
/green-trousers?campaign=twitter/_index_slash_ssl.html
/green-trousers?campaign=twitter/_index_slash_ssl.html_gzip
/green-trousers?campaign=partnerX/_index_slash_ssl.html
/green-trousers?campaign=partnerX/_index_slash_ssl.html_gzip

]]>