Search squid archive

ESI requests contain invalid content-length header

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

 



I've noticed a problem when pages returned as a result of a POST
contain esi:include directives: the included content is fetched using
GET but the content-length header from the original POST is forwarded
to the server. Our backend server is running IIS and this rejects the
request as invalid.

Since we're still running squid 2.6 and I haven't had time to check
whether the problem still exists in more recent versions I'm not
submitting a bug report just yet, but thought it still worth sending
to the list just in case anyone else gets the same problem.

We do have a workaround: the ESI requests also pass through squid so I
added a rule to strip out the content-length header:

   acl get_requests method GET
   acl esi_content urlpath_regex -i /esi/.*\.aspx
   request_header_access Content-Length deny get_requests esi_content

Duncan


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

  Powered by Linux