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

Last-Modified / If-Modified-Since / 304 support with data-based timestamp? #244

Open
jensb opened this issue Jul 18, 2018 · 0 comments
Open

Comments

@jensb
Copy link

jensb commented Jul 18, 2018

There is a PR implementing Last-Modified header support, but - if I have read this correctly - this will still regenerate the page content to check whether to retransfer it to the client, just like ETags do.
I'd like to be able to pass a manual timestamp to an action's Last-Modified header, gotten via a (fast & cheap) DB query, instead of starting the normal (expensive & slow) controller action whose result is supposed to be cached.
Is this possible using this library? The crucial question is probably how to get the timestamp value out of the database even before starting the controller action ...

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

1 participant