-
I have a bunch of api endpoints, some of them is How to validate them with only |
Beta Was this translation helpful? Give feedback.
Answered by
JWCook
Dec 24, 2022
Replies: 1 comment 1 reply
-
Looks like solved with this, is that mean if i fill with 0 is 0 minutes? what is -1 mean |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, currently the best option is to use URL patterns to set an expiration of 0. for example:
That will likely do what you want, but it's not 100% the same as disabling the cache for that
/random
endpoint. The response will be stored in the cache, but it won't actually be used unless you specifically request it. The reason for that is to support things likemax-stale
or conditional requests (not yet implemented in this library, but mentioned in #79 if anyone needs it).That means "never expires." Docs for the different expiration values…