Search squid archive

Re: how to cache POST request response ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mån 2008-07-21 klockan 20:08 +0700 skrev johan firdianto:
> anyone here know how to cache response of POST request ?

POST isn't cachable in the manner you like it to be.

HTTP caching of POST is a quite odd thing.. if a POST results in a
cachable reply then that reply will be returned on a subsequent GET for
the same URL. But this being as odd as it is Squid does not support
this.

To make those sites play well with the cache you can try convincing the
site operators that they should return a 302 from the POST, redirecting
the client to a static download URL for the file shared by all
downloaders, but quote often these download sites do not want their
downloads to be cached at all so I am not too optimistic about success
in acheiving that.. (access counters and restrictions)

Regards
Henrik


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux