Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3212

200 code is returned as 304

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • sometime
    • Cache

    Description

      The live streaming videos from akamaihd.net CDN cannot be watched because ATS rewrite codes 200 into 304 and videos enter continuosly in buffering status:

      GET http://abclive.abcnews.com/z/abc_live1@136327/1200_02769fd3e0d85977-p.bootstrap?g=PDSTQVGEMQKR&b=500,300,700,900,1200&hdcore=3.1.0&plugin=aasp-3.1.0.43.124 HTTP/1.1
      Host: abclive.abcnews.com
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Language: it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3
      Accept-Encoding: gzip, deflate
      Referer: http://a.abcnews.com/assets/player/amp/2.0.0012/amp.premier/AkamaiPremierPlayer.swf
      Cookie: _alid_=0OHcZb9VLdpbE6LrNYyDDA==
      Connection: keep-alive
      
      HTTP/1.1 200 OK
      Server: ContactLab
      Mime-Version: 1.0
      Content-Type: video/abst
      Content-Length: 122
      Last-Modified: Tue, 25 Nov 2014 05:28:32 GMT
      Expires: Tue, 25 Nov 2014 15:31:53 GMT
      Cache-Control: max-age=0, no-cache
      Pragma: no-cache
      Date: Tue, 25 Nov 2014 15:31:53 GMT
      access-control-allow-origin: *
      Set-Cookie: _alid_=0OHcZb9VLdpbE6LrNYyDDA==; path=/z/abc_live1@136327/; domain=abclive.abcnews.com
      Age: 0
      Connection: keep-alive
      
      
      
      
      
      
      GET http://abclive.abcnews.com/z/abc_live1@136327/1200_02769fd3e0d85977-p.bootstrap?g=PDSTQVGEMQKR&b=500,300,700,900,1200&hdcore=3.1.0&plugin=aasp-3.1.0.43.124 HTTP/1.1
      Host: abclive.abcnews.com
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Language: it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3
      Accept-Encoding: gzip, deflate
      Referer: http://a.abcnews.com/assets/player/amp/2.0.0012/amp.premier/AkamaiPremierPlayer.swf
      Cookie: _alid_=0OHcZb9VLdpbE6LrNYyDDA==
      Connection: keep-alive
      If-Modified-Since: Tue, 25 Nov 2014 05:28:32 GMT
      
      
      HTTP/1.1 304 Not Modified
      Date: Tue, 25 Nov 2014 15:31:58 GMT
      Expires: Tue, 25 Nov 2014 15:31:58 GMT
      Cache-Control: max-age=0, no-cache
      Connection: keep-alive
      Server: ContactLab
      

      using the url_regex to skip cache/IMS doesn't work, the workaround is the following line in records.config:

      CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic INT 0

      Attachments

        Activity

          People

            Unassigned Unassigned
            luca.rea Luca Rea
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: