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

use browser caching #22

Closed
jankeromnes opened this issue May 19, 2012 · 3 comments
Closed

use browser caching #22

jankeromnes opened this issue May 19, 2012 · 3 comments

Comments

@jankeromnes
Copy link
Collaborator

There should be an easy way to specify caching on certain files e.g. "this file should be updated every 2 weeks" or "yeah this is not going to change soon, cache it for eternity". It would definitely bring some speed to garden/tree!

@espadrine
Copy link
Owner

Definitely.

Of course, we have access to the Ask object, so we can already do that easily.
What would be nice is to have sane defaults. Do you know what
defaults are in use in httpd and nginx (if there are any in nginx at all)?

@jankeromnes
Copy link
Collaborator Author

No idea, worth investigating :)

@jankeromnes
Copy link
Collaborator Author

Possible by using the ask object as follows:

ask.res.setHeader('Last-Modified', new Date().toGMTString());

Closing.

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

No branches or pull requests

2 participants