Reputation: 595
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
Upvotes: 3
Views: 5570
Reputation: 2087
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.
Upvotes: 6