The Holy Cache Manager is a simple tool designed to interact with a Worker backend to cache any public URL JS/CSS or any other static files. It allows users to:
- Cache a public URL on Cloudflare.
- View a list of cached URLs.
- Delete cached URLs by their cache key.
The tool includes both the backend implementation and a frontend HTML interface for user interaction.
Demo - https://holy-cache-ui.surajdhakre.xyz/
Features
- Cache a publicly accessible URL.
- Retrieve a list of all cached URLs along with their metadata.
- Delete a cached URL by providing its cache key.
- OPTIONS requests are supported to allow preflight checks for cross-origin requests.
- The HTML page provides a user-friendly interface to interact with the API.
For any issues or questions, please contact me on my email id.
Note: Please do not delete other user’s cache url. You may never know how they are using it.
Note: Please use it responsibly.
Conclusion
The Holy Cache manage provides a straightforward solution for caching and managing public assets. This tool ensures faster load times and reduced server load. Personally, I created this tool to cache some of the public urls which were taking too long to load, therefore making the page load time faster. I could not have used the existing CDN cloudflare because it does not allow caching outside current domain. I hope this tool will be of use for someone else as well.
So feel free to try it out for yourself. Happy Coding 🚀