-
Notifications
You must be signed in to change notification settings - Fork 157
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
Respect ttl from the cache-headers #77
Labels
Comments
Added, only |
Nice! |
When will it be available via Docker? |
The |
jiangwenyuan
added a commit
that referenced
this issue
Jun 9, 2020
(cherry picked from commit a593f91)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior
Nuster
ignores the information ta comes from the backend regarding for how long should Nuster cache the file. It means that if your backend already takes care of setting correctly theCache-Control
header you might have to duplicate all your cache definitions in both places since this header is highly adopted if you have a CDN on top of your service or even for local caching on the user browser.Expected Behaviour
Currently, the only way we have to tell how for how long
Nuster
should cache our files is by using thettl=<time>
.In my humble opinion, the default should be to respect what is defined on the HTTP protocol (honoring the headers) and gives us the option to tell otherwise as
Nginx
does. But I guess this might be a harder decision to make. So in that case, it would be nice ifttl
accepted an option likettl=auto
or similar. Wherettl=auto
means it will use that's defined on the backend response.Thanks a lot and keep it up with the good work! 🏆
The text was updated successfully, but these errors were encountered: