<div dir="ltr">Hello, Amos, <div><br></div><div>Thank you for the information.</div><div>The headers I included in the previous message were taken from the "outside" proxy interface, i.e. were sent by the original content server (I think it is a CDN):</div><div><span class="gmail-im" style="color:rgb(80,0,80)">><br>>     Content-Type: video/MP2T<br></span>>     *Expires: Thu, 01 Jan 1970 00:00:01 GMT*<br>>     *Cache-Control: no-cache*<span class="gmail-im" style="color:rgb(80,0,80)"><br>>     Cache: HIT<br>>     X-Cached-Since: 2023-04-25T07:43:41+00:00<br>></span><br></div><div><span class="gmail-im" style="color:rgb(80,0,80)"><br></span></div><div><span class="gmail-im" style="color:rgb(80,0,80)"><span style="color:rgb(34,34,34)">On the client side I see:</span><br></span></div><div>< HTTP/1.1 200 OK<br>< Server: nginx<br>< Date: Wed, 26 Apr 2023 10:37:29 GMT<br>< Content-Type: video/MP2T<br>< Content-Length: 1955200<br>< Expires: Thu, 01 Jan 1970 00:00:01 GMT<br>< Cache-Control: no-cache<br>< Access-Control-Allow-Origin: *<br>< access-control-allow-headers: x-vsaas-session, x-no-redirect, origin, authorization, accept, range, x-device-screen,x-locale,x-timezone<br>< access-control-expose-headers: Server, range, X-Run-Time, Content-Length, Location, x-id, x-shard, x-vhost-ver, cache<br>< Cache: HIT<br>< X-Cached-Since: 2023-04-25T07:43:43+00:00<br>< X-ID: m9p-up-gc39<br>< Accept-Ranges: bytes<br>< X-Cache: MISS from 0001vsg02<br>< X-Cache-Lookup: MISS from 0001vsg02:3131<br>< Connection: keep-alive<br></div><div><br></div><div>I would rephrase my question: is it possible to configure squid so that it caches files with the extension ".ts" despite the caching control headers passed by OCS and serves user requests from the cache?<br></div><div><br></div><div>Kind regards,</div><div>     Ankor.</div><div><span class="gmail-im" style="color:rgb(80,0,80)"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 25 апр. 2023 г. в 17:53, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 25/04/2023 9:45 pm, Andrey K wrote:<br>
> Hello,<br>
><br>
> We are trying to cache some resources, but they respond in the header <br>
> with the attributes that prevent caching:<br>
><br>
>     Content-Type: video/MP2T<br>
>     *Expires: Thu, 01 Jan 1970 00:00:01 GMT*<br>
>     *Cache-Control: no-cache*<br>
>     Cache: HIT<br>
>     X-Cached-Since: 2023-04-25T07:43:41+00:00<br>
><br>
> Thus, we see TCP_MISS in the logs.<br>
> Is it possible to configure squid in such a way that it ignores <br>
> *Cache-control=no-cache* and *Expires *attributes and takes responses <br>
> from the cache?<br>
><br>
<br>
This is **not** uncacheable. As shown by "Cache: HIT" there was an <br>
object found in the cache.<br>
<br>
The "Expires" header is overridden by the existence of Cache-Control <br>
header. So ignore that.<br>
<br>
The Cache-Control:no-cache actually means Squid can cache the response, <br>
but *must* contact the origin server before using a HIT.<br>
<br>
For some reason the origin produced a newer version of the object thus <br>
the log says "MISS".<br>
<br>
HTH<br>
Amos<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>