You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If request handler implements interface, is serving a GET request and has a If-None-Match header, the interface method eTag should be called before calling the request handler main method.
If the returned etag matches the etag from the request header "If-None-Match" - return 304 with empty body, if not - execute the request handler main method as usual.
Also, if request handler implements interface and is serving a GET request, the interface methods revalidate, cacheable, maxAge should be called before returning the response, setting the Cache-Control response header value based on the methods return values.
If request handler implements interface, is serving a GET request and has a If-None-Match header, the interface method
eTag
should be called before calling the request handler main method.If the returned etag matches the etag from the request header "If-None-Match" - return 304 with empty body, if not - execute the request handler main method as usual.
Also, if request handler implements interface and is serving a GET request, the interface methods
revalidate
,cacheable
,maxAge
should be called before returning the response, setting the Cache-Control response header value based on the methods return values.https://web.dev/http-cache/
Update tests, docs
The text was updated successfully, but these errors were encountered: