How to set up page rules to cache a PDF

I can find anywhere that deals with PDF files specifically. I have a URL that is a download of a PDF. What are the page rule setting for best performance? It’s a static page.

My suggestion would be a page rule and just have it be cached site to everything.

Cloudflare already caches PDF files by default. Keep in mind that cached files that are rarely accessed will be purged from Cloudflare’s edge servers. You could try a Page Rule to:
Match:*.pdf and add settings for Cache Level: Cache Everything, and Edge Cache TTL of 1 month. Again, rarely accessed files will be purged before TTL expiration.

This topic was automatically closed after 30 days. New replies are no longer allowed.