fdiary opened a new issue #8538:
URL: https://github.com/apache/trafficserver/issues/8538


   Hi !
   
   I got a double-gzipped response by compress plugin in case of POST request 
to a fresh cache existing URL.
   
   One is triggered in `TS_EVENT_HTTP_READ_RESPONSE_HDR`, for the response from 
the server.
   
   
https://github.com/apache/trafficserver/blob/d0a44f86345c9125946978efbbf837a720fc9537/plugins/compress/compress.cc#L847-L863
   
   Another is triggered in `TS_EVENT_HTTP_CACHE_LOOKUP_COMPLETE`, for the 
existing fresh cash.
   
   
https://github.com/apache/trafficserver/blob/d0a44f86345c9125946978efbbf837a720fc9537/plugins/compress/compress.cc#L884-L891
   
   Normally, if no fresh cache exists, only the former is triggered.  And if a 
fresh cache exists, only the latter is triggered.
   
   But in case of (successful) POST request, existing cache will be deleted 
even if a fresh cache exists. This is an expected behaviour (see #7839). But in 
such case, `TS_CACHE_LOOKUP_HIT_FRESH == obj_status` condition is true, thus 
BOTH above are triggered.
   
   Thanks in advance !
   Kazuhiko


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to