Search
Setup for Free
CD
Cloudflare Developers
•
2y ago
Ksum Nole
Clear browser cache via js
How i can emulate the devtools clear cache but in javascript
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,384
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
K
Ksum Nole
OP
•
6/14/24, 9:26 PM
i already done the purge cache from api but the browser stills have the old version
F
frederik
•
6/15/24, 4:41 PM
I don
't think that
's possible
. Maybe you should implement something like cache busting
/ asset hashing
https://www.keycdn.com/support/what-is-cache-busting
.
KeyCDN
What is Cache Busting? - KeyCDN Support
Cache busting solves browser caching issues by using a unique file version identifier to tell the browser that a new version of the file is available
.
K
Ksum Nole
OP
•
7/12/24, 9:26 AM
Currently I have cf to cache my html and js files and I have an endpoint to clear it and o have an API that says like the ctag and I detect it but I can
't find a way to refresh without cache
K
Ksum Nole
OP
•
7/12/24, 9:29 AM
Years before was as simple as adding a true to location
.rekoad
Similar Threads
Clear cache for *.pages.dev domain
CD
Cloudflare Developers / pages-help
6mo ago
Cloudflare Images Browser Cache TTL
CD
Cloudflare Developers / general-help
6mo ago
the "Browser Cache TTL" does nothing
CD
Cloudflare Developers / workers-and-pages-help
11mo ago