Change HTTP headers of browse page to prevent caching of pages

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Duplicate
    • None
    • Component/s: None
    • Environment:
      Atlassian JIRA (Professional Edition, Version: 2.6-#64)

      The HTTP-headers of the Dashboard page and Browse pages differ, causing some proxy servers (e.g. Microsoft ISA server) to succesfully cache/update the Dashboard page, but to fail caching the browse-pages correctly (see JRA-4019 ).

      Here are the liveheaders of the Dashboard page
      (generated using Mozilla/Liveheaders):

      http://internal:8080/secure/Dashboard.jspa

      GET /secure/Dashboard.jspa HTTP/1.1
      Host: internal:8080
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1
      Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 300
      Connection: keep-alive
      Referer: http://internal:8080/secure/BrowseProject.jspa
      Cookie: seraph.os.cookie=foo.bar; JSESSIONID=foo.bar

      HTTP/1.1 200 OK
      Cache-Control: no-cache, no-store, must-revalidate
      Pragma: no-cache, no-cache
      Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1
      Content-Type: text/html;charset=UTF-8
      Transfer-Encoding: chunked
      Date: Mon, 26 Jul 2004 11:20:13 GMT
      Server: Apache-Coyote/1.1

      --------------------------------

      Here are the headers for a Browse page

      http://internal:8080/browse/ISSUE-1

      GET /browse/ISSUE-1 HTTP/1.1
      Host: internal:8080
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1
      Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 300
      Connection: keep-alive
      Referer: http://internal:8080/secure/Dashboard.jspa
      Cookie: seraph.os.cookie=foo.bar; JSESSIONID=foo.bar

      HTTP/1.1 200 OK
      Content-Type: text/html;charset=UTF-8
      Transfer-Encoding: chunked
      Date: Mon, 26 Jul 2004 11:20:49 GMT
      Server: Apache-Coyote/1.1
      Pragma: no-cache
      Expires: -1

      --------------------------------------

      Suggested improvement:

      a) make the caching HTTP-headers in all Jira pages work the same

      b) add "Cache-Control: no-cache, no-store, must-revalidate" and
      "Pragma: no-cache" to response headers in Browse pages (and possible others)

      c) Why does the Dashboard page gives a response header of
      "Pragma: no-cache, no-cache". I assume this is a bug, and it should be "Pragma: no-cache".

      d) Use "Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1" instead of
      "Expires: -1" header in Browse pages.

      e) Follow the HTTP/1.1 standards http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
      and make sure it works proxy servers such as Apache and Microsoft ISA server.

            Assignee:
            Unassigned
            Reporter:
            PieterB
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1.5h
                1.5h
                Remaining:
                Remaining Estimate - 1.5h
                1.5h
                Logged:
                Time Spent - Not Specified
                Not Specified