Skip to content
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

Offer an (optionnal) cache mechanism #18

Open
arthurlutz opened this issue Nov 3, 2011 · 3 comments
Open

Offer an (optionnal) cache mechanism #18

arthurlutz opened this issue Nov 3, 2011 · 3 comments

Comments

@arthurlutz
Copy link

I don't know if this should be in pagekite (or in a pagekite architecture) but it would be nice to switch to a cached version of the site when it is offline.

Again, making it optionnal.

Added cool things :

  • have a banner stating that it is the offline version
  • should information about when this cached version was made
  • disable interactions (safeguards for POST for example would be a start)
@pagekite
Copy link
Owner

pagekite commented Nov 3, 2011

I agree this would be great. It's rather tricky though, because doing this properly requires adding a complete HTTP parser inside pagekite.py and a mechanism for rerouting requests to an external cache - which would then send the request back to pagekite for forwarding to the actual back-end. This would be really useful though, because it wouldn't just increase availability, it would improve performance and lighten the load on the user's webserver. With this, pagekite enabled sites would actually be able to handle slashdottings and such fun events.

This is on our long-term TODO, but we're focusing on more low hanging fruit for now. :-)

@ghost ghost assigned pagekite Apr 28, 2012
@BjarniRunar
Copy link
Collaborator

Having thought about this, this is no longer on our TODO list. There are other caching proxies out there, combining them with PageKite should be the way to do this. Thanks for filing!

@BjarniRunar
Copy link
Collaborator

Actually, going to reopen this and mark as "Would Accept Pull Request" - if someone wants to do the work, we wouldn't reject it! The best way to do this is still to use an external cache, but as mentioned above, some hooks in PageKite itself might be necessary for that to perform and function well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants