How can I cache php generated files on CloudFlare?
-
21-12-2019 - |
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
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