Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44e569f

Browse filesBrowse files
authored
Update http_cache.rst
I want to point that POST method is cacheable however this is very very narrow case but it is possible. Reading documentation you can learn that POST is not cacheable but this is not true and technically you can cache it.
1 parent 57a4eab commit 44e569f
Copy full SHA for 44e569f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎http_cache.rst

Copy file name to clipboardExpand all lines: http_cache.rst
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ two things:
289289
* Don't try to cache PUT, POST or DELETE requests. It won't work and with good
290290
reason. These methods are meant to be used when mutating the state of your application
291291
(e.g. deleting a blog post). Caching them would prevent certain requests from hitting
292-
and mutating your application.
292+
and mutating your application. (Technically caching POST requests is possible however this is very narrow case `Caching POST`_
293293

294294
* You should *never* change the state of your application (e.g. update a blog post)
295295
when responding to a GET or HEAD request. If those requests are cached, future
@@ -366,3 +366,4 @@ Learn more
366366
.. _`RFC 7234 - Caching`: https://tools.ietf.org/html/rfc7234
367367
.. _`RFC 7232 - Conditional Requests`: https://tools.ietf.org/html/rfc7232
368368
.. _`FOSHttpCacheBundle`: http://foshttpcachebundle.readthedocs.org/
369+
.. _`Caching POST`: https://www.mnot.net/blog/2012/09/24/caching_POST

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.