Add delete from cache functionality of Specific URL#16
Add delete from cache functionality of Specific URL#16underscore05 wants to merge 1 commit intoJonathanBennett:masterfrom
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.