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
Received on Mon Jul 21 2008 - 21:16:07 MDT
This archive was generated by hypermail 2.2.0 : Tue Jul 22 2008 - 12:00:04 MDT