HTTP Caching Server that supports POST

Posted by Jeroen on Server Fault See other posts from Server Fault or by Jeroen
Published on 2012-04-12T18:53:43Z Indexed on 2012/04/13 11:32 UTC
Read the original article Hit count: 262

Filed under:
|
|
|
|

I am hosting a REST service which is sending appropriate cache-control headers. I use Varnish as a caching server in front of my webserver. However, a limitation of varnish is that it doesn't support caching HTTP POST and HTTP PUT. Is there any alternate caching server that will be able to cache these requests?

I understand that caching POST is a bit tricky because you cannot just cache based on the url as a key like for GET; it needs to actually inspect the request body. In case of multipart/form-data requests, there should probably be a limit on the size of the request body for it to be cached (so that big file uploads, etc won't be cached). Nevertheless I really want to be able to cache short HTTP POST, or at least the application/x-www-form-urlencoded ones.

© Server Fault or respective owner

Related posts about apache2

Related posts about nginx