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

Cache should consider produced mimetype - like 2.x did

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 3.0.6.Final
    • None

      We have recently upgraded from 2.x to 3.0.6 and found that cache behavior is different.

      Before the ServerCacheHitFilter considered the produced mimetype from the method, but now it only looks at request headers.
      ServerCacheHitFilter#handleGET

      We have an app that only produces application/json, but clients that don't specify this in request will trigger a method invocation even though a valid cache exist (since it only produces application/json).

      Is there any way we can have the behaviour from 2.x back?

              rsigal@redhat.com Ronald Sigal
              magnus.kvalheim Bård Magnus Kvalheim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: