We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
Why is my CDN Site not caching?
Answer:
To confirm your CDN site is not caching, use Curl command. You should always get a "MISS" as result. Refer to https://help.onapp.com/hc/en-us/articles/222042908.
When your CDN url is not caching, it can due to the following:
- Origin Cache-Control set as no-cache
- Cookies are enabled, you have to configure "ignore set cookies" in CDN resource advance settings.
- Expiry header comes before Cache-Control header. Our system will honor the order of web header. If expiry header is set at an old date, then the content will never be cached.
- You get a 301/302 redirection when you are performing "curl -I" on your cdn url. You may need to remove the redirection from the web origin, or use IP origin (if the redirection rule did not apply on IP).