We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c43a3cf commit c610be4Copy full SHA for c610be4
lib/HTTP/Status.pm
@@ -272,6 +272,15 @@ that it has erred or is incapable of performing the request.
272
273
This function is B<not> exported by default.
274
275
+=item is_cacheable_by_default( $code )
276
+
277
+Return TRUE if C<$code> indicates that a response is cacheable by default, and
278
+it can be reused by a cache with heuristic expiration. All other status codes
279
+are not cacheable by default. See L<RFC 7231 - HTTP/1.1 Semantics and Content,
280
+Section 6.1. Overview of Status Codes>
281
282
+This function is B<not> exported by default.
283
284
=back
285
286
=head1 BUGS
0 commit comments