glassfish
  1. glassfish
  2. GLASSFISH-12493

The headers "Pragma: no-cache" and "Cache-control: no-cache" are inserted to HTTP response automatically.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: v2.1.1
    • Fix Version/s: 3.1
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      12,493

      Description

      The headers "Pragma: no-cache" and "Cache-control: no-cache" are inserted to
      HTTP response automatically.
      How is possible change the behaviour (disable automatic inserting the headers)?
      I know, that Tomcat make it possible via context.xml:
      For example:
      <Context>
      <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
      disableProxyCaching="false" ></Valve>
      </Context>

      Unfortunatelly, I'm not found the equivalent configuration for Glassfish.

      1. context.xml
        0.2 kB
        janouskovec
      2. domain.xml
        72 kB
        janouskovec

        Activity

        Hide
        janouskovec added a comment -

        Please see attachment.

        Show
        janouskovec added a comment - Please see attachment.
        Hide
        Amy Roh added a comment -

        Do you have virtual-server setCacheControl property in the domain.xml? Can you attach your domain.xml and the war with META-INF/context.xml?

        Show
        Amy Roh added a comment - Do you have virtual-server setCacheControl property in the domain.xml? Can you attach your domain.xml and the war with META-INF/context.xml?
        Hide
        janouskovec added a comment -

        Same problem in 3.1.2 b17. In GF 2.1.1 worked "context.xml" workaround, but in GF 3.1.2 the context.xml is ignored. "Pragma: no-cache" and "Cache-control: no-cache" headers are inserted to HTTP response, although context.xml file exists in META-INF directory.

        Show
        janouskovec added a comment - Same problem in 3.1.2 b17. In GF 2.1.1 worked "context.xml" workaround, but in GF 3.1.2 the context.xml is ignored. "Pragma: no-cache" and "Cache-control: no-cache" headers are inserted to HTTP response, although context.xml file exists in META-INF directory.
        Hide
        Shing Wai Chan added a comment -

        We do support context.xml in GlassFish.
        One can achieve the behavior desscribed above by putting the context.xml in
        META-INF of the war file.

        Show
        Shing Wai Chan added a comment - We do support context.xml in GlassFish. One can achieve the behavior desscribed above by putting the context.xml in META-INF of the war file.
        Hide
        Tom Mueller added a comment -

        This appears to be a web container issue.

        Show
        Tom Mueller added a comment - This appears to be a web container issue.

          People

          • Assignee:
            Amy Roh
            Reporter:
            pjanouskovec
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: