Cache Level: Cache Everything
Edge Cache TTL: an hour
Origin Cache Control: Off
As we intentionally disabled Origin Cache Control I understand and accept that everything is cached regardless of headers set by application. But I don’t understand why redirects 302 (temporary) are included, and I don’t have any idea how to exclude them.
We use geo-localization, entering the page https://example.com from England redirects to http://example.com/en but when I do the same from a different country I am still redirected to en. It is not an issue related to the home page, as it works also for subpages, so I can’t use the Cache Rule and just exclude https://example.com.
I was hoping for a Rule like (http.status_code eq "302") then Bypass cache, but I don’t see any such option. Any idea?
Hit the Create Rule button and under Edge TTL you should see a bunch of options, including Status Code TTL. Set 302 with either “no-cache” or “no-store”. You should find online resources that explain the difference between the two.