Question

I want to add to the cloudflare cache jpg and pdf files generated from php pages, with urls in the form of «index.php?file=hola.pdf». The files generated are static and everytime the same, but I think there are not being cached because of the php filename extension.

What can I do? What do you suggest? Thanks and greets

Was it helpful?

Solution

Use PageRules to extend the caching to include php and other files.

Notes: We don't cache by MIME type. The default configuration for the CDN caches these static content types by default.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top