method
only_if_cached?
v8.1.1 -
Show latest stable
- Class:
ActionDispatch::Http::Cache::Request::CacheControlDirectives
only_if_cached?()public
Returns true if the only-if-cached directive is present. This directive indicates that the client only wishes to obtain a stored response. If a valid stored response is not available, the server should respond with a 504 (Gateway Timeout) status.