Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 1.11
    • Fix Version/s: 1.17
    • Component/s: None
    • Labels:
      None
    • Environment:

      windows 7; Apache Tomcat 7

      Description

      Each time I browse a REST resource with Chrome, I notice that there's an HTTP Header Expires set to Thu, 01 Jan 1970 01:00:00 CET.

      I tried to edit the Response adding:

      return Response.ok( myObject ).expires(new Date(System.currentTimeMillis() + 3000);

      Unfortunately, this adds another HTTP Header Expires instead of replacing the old one.

        Activity

        Hide
        Martin Matula added a comment -

        Pavel, please evaluate.

        Show
        Martin Matula added a comment - Pavel, please evaluate.
        Hide
        Pavel Bucek added a comment -

        Jersey does not return this header by default - looks like this is produced by your container and since its Tomcat, you should check its documentation.

        Closing as invalid, feel free to reopen when you can provide more info/proof that issue is in Jersey workspace.

        Show
        Pavel Bucek added a comment - Jersey does not return this header by default - looks like this is produced by your container and since its Tomcat, you should check its documentation. Closing as invalid, feel free to reopen when you can provide more info/proof that issue is in Jersey workspace.

          People

          • Assignee:
            Pavel Bucek
            Reporter:
            francesco23u
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: