rodriguesl6 opened a new issue #8674: URL: https://github.com/apache/trafficserver/issues/8674
I have setup an instance of ATS and the goal is integrates with nimble packager. As mentioned on ATS documentation, cache configs should be set in origin (nimble), so we shouldn't add any cache ttl on cache.config file. Nimble is sending max-age header but ATS is not caching. Cache configurations were added to nimble and are being reproduced on cache-control header: _playlist_cache_control = max-age=4_ and _chunk_cache_control = max-age=8_ **ATS release:** Apache Traffic Server - traffic_ctl - 9.1.1 - (build # 012815 on Jan 28 2022 at 15:18:41) **ATS cache parameters:** proxy.config.http.cache.required_headers: 2 proxy.config.http.cache.http: 1 **Request from host to traffic router:** `curl -v -L 'http://nimble.http.lab.invalid/live/TV5/chunks.m3u8' * Trying 192.168.0.12:80... * TCP_NODELAY set * Connected to nimble.http.lab.invalid (192.168.0.12) port 80 (#0) > GET /live/TV5/chunks.m3u8 HTTP/1.1 > Host: nimble.http.lab.invalid > User-Agent: curl/7.65.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 302 < Location: http://ats.http.lab.invalid:8080/live/TV5/chunks.m3u8 < Content-Length: 0 < Date: Thu, 17 Feb 2022 15:36:11 GMT < * Connection #0 to host nimble.http.lab.invalid left intact * Issue another request to this URL: 'http://ats.http.lab.invalid:8080/live/TV5/chunks.m3u8' * Trying 192.168.0.5:8080... * TCP_NODELAY set * Connected to ats.http.lab.invalid (192.168.0.5) port 8080 > GET /live/TV5/chunks.m3u8 HTTP/1.1 > Host: ats.http.lab.invalid:8080 > User-Agent: curl/7.65.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Server: 1.el8 < Date: Thu, 17 Feb 2022 15:36:11 GMT < Content-Type: application/vnd.apple.mpegurl < Content-Length: 225 < Accept-Ranges: bytes **< Cache-Control: max-age=4** < Access-Control-Allow-Origin: * < Access-Control-Expose-Headers: Content-Length **< Age: 0** < Connection: keep-alive < #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:7 #EXT-X-MEDIA-SEQUENCE:13347 #EXTINF:6.006, l_4_59880314_13347.ts #EXTINF:6.006, l_4_59886320_13348.ts #EXTINF:6.006, l_4_59892326_13349.ts #EXTINF:6.006, l_4_59898332_13350.ts ` **Logs from ATS (several manifest requests):** `2022-02-17:15:39:56 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 0 32 0 - 2022-02-17:15:39:57 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 5 14 0 - 2022-02-17:15:39:57 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 0 8 0 - 2022-02-17:15:39:57 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 1 14 0 - 2022-02-17:15:39:57 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 0 8 0 - 2022-02-17:15:39:57 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 2 38 0 - 2022-02-17:15:39:57 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 0 13 0 - 2022-02-17:15:39:58 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 9 18 0 - 2022-02-17:15:39:58 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 1 9 0 - 2022-02-17:15:39:58 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 5 13 0 - 2022-02-17:15:39:58 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 5 14 0 - 2022-02-17:15:39:58 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 0 38 0 - 2022-02-17:15:39:58 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 5 14 0 - 2022-02-17:15:39:59 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 1 14 0 - 2022-02-17:15:39:59 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 1 9 0 - 2022-02-17:15:39:59 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 1 9 0 - 2022-02-17:15:39:59 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 0 8 0 - 2022-02-17:15:39:59 192.168.0.3 TCP_MISS/200 http://nimble.lab.invalid:8081/live/TV5/chunks.m3u8 200 225 curl/7.65.0 1 38 0 - ` -- 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]
