method

only_if_cached?

rails latest stable - Class: ActionDispatch::Http::Cache::Request::CacheControlDirectives

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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.