Forward query string for default cached file extensions

What is the name of the domain?

example.com

What is the issue you’re encountering

When accessing a URL with file extension from the default cached files extensions list, no query string is forwarded to the origin server.

What steps have you taken to resolve the issue?

No custom rules, default configuration, proxy mode enabled. Caching level is set to “Standard”.

When accessing https://example.com/image.jpg?width=100&height=100 , the server receives only https://example.com/image.jpg. The query string parameters width and height are lost.
The same applies to all file extensions mentioned on Default Cache Behavior · Cloudflare Cache (CDN) docs
Other extensions works ok and the query parameters are received.

The requests are not being cached, they are server by the origin server.
I tried to create both a cache rule and a page rule to “Bypass cache” but the query string is still lost.

How can I configure Cloudflare to always forward the query string to the origin server for the default file extensions? Or how can I disable the default extension file list?

Thanks.

Screenshot of the error

Wonder what’s your default Cache settings behaviour set at Cloudflare dashboard? :thinking:
Is it set to Standard or?

Furthermore, how about URL normalization? :thinking:

Nevertheless, the .ogg is cached by default:

@fritex 1/ Caching level is set to Standard.

2/ I do not see a reason why URL normalization should remove the query string. Especially when the query string is working for other file extensions.

3/ Yes, OGG as well as JPG/PNG and other formats are cached by default and I need to either:
a) turn the cache off
b) or configure Cloudflare to cache but forward the query string to the origin server.

Without query parameters sent to the origin it is not possible to implement custom image resizers or other services which require query parameters. OGG is just an example.

Thanks.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.