Unnecessary Query Strings


#1

Should I disable this in Caching> Caching Level

More often than not, your website will need a plugin or module that provides you with some additional functionality. Some of these plugins, however, may add unneeded query strings to your files.

Query strings are good for serving different versions of a file through the same url, by just changing the query string at the end of the file (?v2.0, ?v2.1 for example). In a use case where you don’t serve different file versions using query strings, they act as unneeded “cache busters.”

Each request containing a new query string represents a new request and the CDN interprets it as a new file that needs to be cached again, even though the content is the same. Ultimately, this results in unneeded requests to the origin server.


#2

This topic was automatically closed after 14 days. New replies are no longer allowed.