How can I cache php generated files on CloudFlare?
-
21-12-2019 - |
Frage
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
Lösung
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.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow