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

Cache invalidation missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.3-RC1
    • 2.2.2.GA
    • jaxrs
    • None

    Description

      I've got a RESTEasy project using the server-side cache. My resource class implements all HTTP CRUD methods and my @GET method has the @Cache(maxAge = 600) annotation. If I update my (previously POST-generated) resource by using the @PUT method, I won't see the changes in the GET response until the maxAge time has passed.

      But, according to the HTTP specification, PUT, POST and DELETE must invalidate the cache: http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.10

      My problem is somehow similar to RESTEASY-375, with the difference that there the invalidation should be invokable manually, whereas I want the invalidation to be automatically executed on PUT - which is a requirement to fit the HTTP spec.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            rmueller123_jira Roland Müller (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: