-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add delete from cache functionality of Specific URL #16
base: master
Are you sure you want to change the base?
Conversation
It looks like this will just continue on with the normal routes, render the URL again, and then save the resulting HTML back into the redis cache since This would be handy but I don't know if you'd actually want to expose this since anyone can send that DELETE request. Ideally you'd have a separate way of deleting pages from your cache that doesn't involve hitting the URL through your server. |
I think it will not continue because of the following line.
And maybe a header with secret-token will suffice securing that delete functionality? Though, I don't know how to do that either. |
The For example, the code already in that file will try to find the result from redis, and if found, return the html using
|
Hmm... does it mean that |
ohhhh...... |
I have actually gone ahead and implemented this as it's heavily requested, and would leave it up to the responsibility of the proxy that (hopefully) exposes prerender to block this from external calls if this is undesirable. @thoop I'd appreciate the feedback, so if you think this isn't the right approach, do let me know. At the moment it sits on branch v0.3.0, and will await a bit of feedback before it's merged and released. |
No description provided.