Ignore Query String for HTML pages

caching

#1

Hi everyone,

I want to cache the HTML on this page for any query string:
https://sroa.com/storage_units/florida/train2/

For example, I want the following URLs:
https://sroa.com/storage_units/florida/train2/?id=1&id2=x&id3=a
https://sroa.com/storage_units/florida/train2/?id=2&id2=y&id3=b
https://sroa.com/storage_units/florida/train2/?id=3&id2=z&id3=c

For any id value I want to show the base URL content:
https://sroa.com/storage_units/florida/train2/

So i want to just cache by ignoring the query string.

But here it says https://support.cloudflare.com/hc/en-us/articles/200168256 :
Ignore Query String / Simple: Delivers the same resource to everyone independent of the query string (Note: The Ignore Query String setting only applies to static file extensions. This setting will remove the query string when generating the cache key, so that a request for “style.css?something” will be normalised to just “style.css” when serving from the cache.).

But it only works for static file extensions listed here:

How do I ignore query string AND cache HTML???

Thank you,
Evan Jerkunica


split this topic #2

4 posts were merged into an existing topic: Caching Static HTML and Ignore Query Strings


split this topic #5

A post was merged into an existing topic: Caching Static HTML and Ignore Query Strings


closed #6