Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-578

@NoCache should not set a "public" tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.2.GA
    • 2.2.1
    • None
    • None

      When we use the @NoCache annotation on a @GET resource, we see in our clients:

      Cache-control: public, no-cache

      from the spec http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1
      we see:

      • public Indicates that the response MAY be cached by any cache
      • no-cache ... a cache MUST NOT use the response to satisfy a
        subsequent request without successful revalidation with the origin
        server.

      So, what is the meaning of "public, no-cache"?

      Thanks,

      Matthew

              patriot1burke@gmail.com Bill Burke (Inactive)
              patriot1burke@gmail.com Bill Burke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: