How to cache responses to POST requests

enridaga enridaga at apache.org
Thu Jun 19 19:22:24 CEST 2014


Hi James,
thank you for your answer.

I did not redefined vcl_hash, so I guess it behave as the commented default:

# sub vcl_hash {
#     hash_data(req.url);
#     if (req.http.host) {
#         hash_data(req.http.host);
#     } else {
#         hash_data(server.ip);
#     }
#     return (hash);
# }

Enrico

------------------------------------------------------------------------------
enridaga


On 19 June 2014 18:16, James Pearson <james at ifixit.com> wrote:
> Excerpts from enridaga's message of 2014-06-19 09:33:15 -0700:
>> With the following vcl script I was able to use the corporate proxy
>> and make POST requests work fine.
>> However, the responses are not cached.
>
> What does your vcl_hash() look like?
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list