Umbraco.Cloud.Issues
Umbraco.Cloud.Issues copied to clipboard
Purge Cache in the Cloud Portal not working?
Issue description
A couple of times, most recently last week, I have been using the Purge Cache function in the Cloud Portal without any apparent result. This makes me think maybe the function is buggy.
Most recent example: An outdated pdf is ranking very high on Google Search (normally a good thing, just not in this case) and an editor needs to remove it.
The pdf is deleted from the Media section in the back office, but the file still appears in the browser when the URL is entered (incognito mode).
The recycle bin is emptied. File still appears in the browser.
I try the Purge Cache function in Cloud Portal. File still appears in the browser.
I check the blob storage with Azure Storage Explorer. File is not there, but still appears in the browser.
I talk to the bot who suggests a curl prompt "curl -I https://bla.bla.bla/media/ndyjj3dw/blablabla.pdf" which returns this:
HTTP/1.1 200 OK
Date: Thu, 10 Apr 2025 10:05:36 GMT
Content-Type: application/pdf
Content-Length: 295004
Connection: keep-alive
Cache-Control: public, max-age=604800, must-revalidate
ETag: "0x8DB1E4CDA05139C"
Last-Modified: Mon, 06 Mar 2023 14:12:42 GMT
Vary: Accept-Encoding
accept-range: bytes
uc-cache-status: MISS
x-frame-options: SAMEORIGIN
CF-Cache-Status: HIT
Age: 308050
Accept-Ranges: bytes
Server: cloudflare
CF-RAY: 92e16d4058149308-CPH
uc-cache-status: MISS tells me that the file is indeed removed from the blob. cf-cache-status: HIT tells me that the file is still available from the Cloudflare CDN, i.e. not purged.
After reaching max-age, the file stopped appearing in the browser, as expected. But the purge cache function should surely clean out the entire cache, or?