Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-3054

Replace ignored meta tag cache headers to HTTP headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • Homepage
    • None

    Description

      Firefox ignores caching headers as meta elements.

      <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
      <meta http-equiv="Pragma" content="no-cache">
      <meta http-equiv="Expires" content="0"> 

      Due to this Firefox loads index.html from cache and the user won't be redirected to the Knox login page when there is no Cookie present and the user can't use the homepage.

      The solution is to add the below caching headers to the /gateway/homepage/home/ endpoint. It serves the index.html to the user.

      httpResponse.addHeader("Cache-Control", "no-cache, no-store, must-revalidate");
      httpResponse.addHeader("Pragma", "no-cache");
      httpResponse.addHeader("Expires", "0"); 

       

      Attachments

        Issue Links

          Activity

            People

              pzampino Philip Zampino
              thanicz Tamás Hanicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m