On 23/01/2017 4:34 a.m., boruc wrote: > So basically eCAP will allow me to modify any pages that is in response? What > about pages that are gzipped? Would I have to decode, modify it as I want > and encode?
Yes you would. Squid just passes the data it gets. > If you could write a "lifecycle" of object that is going to be > cached, what would it look like? > > HTTP Request -> HTTP Response -> ContentAdaptation -> Cache -> > Refresh/Delete/OtherStuff Not even close. A request goes through REQMOD-precache adaptation and other stages before the cache lookup happens. request -> stuff -> REQMOD adaptation -> stuff -> cache [ -> upstream server ] There is a 1:1 relationship between request and response on the client connection. But multiple transactions may be occuring with server(s) to produce that response. RESPMOD-precache adaptation happens for each server response, before the adapted content is delivered to the cache or the client. server response -> RESPMOD adaptation -> cache [ -> client response ] In both chains the last entry is in [] since it may not exist. Amos _______________________________________________ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users