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

Cache should consider produced mimetype - like 2.x did

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.0.6.Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ron_sigal Ronald Sigal
                Reporter:
                magnus.kvalheim Bård Magnus Kvalheim
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: