We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
How can I exclude specific files from being cached?
Environment
OnApp CDN
Answer
There are 2 ways to achieve this:
(1) Our CDN will honor the HTTP cache header settings at the web origin. So you can set the HTTP header for the HTML file to "No-Cache" at the origin server. Then our CDN will not cache the HTML file at our side.
(2) You can use the UI feature called "Wildcard Invalidation Rules" from your OnApp Control Panel server: https://docs.onapp.com/cdn/administration-guide/cdn-resources/wildcard-invalidation-rules
Additional Info
This relates closely to your design decision between partial and full site integration.