Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-2591

Cache does not invalidate variant/alternate content types on PUT or POST

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Cache
    • None

    Description

      "Some HTTP methods MUST cause a cache to invalidate an entity. This is either the entity referred to by the Request-URI, or by the Location or Content-Location headers (if present). These methods are: PUT, DELETE, POST."

      http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.10
      (This doesn't explicitly address variant content types, I read it as implied.)

      The current caching implementation only invalidates the Request URI, and not variant/alternate URI's.

      Example: A REST service provides both xml and json documents. A client app requests in both content-types (perhaps two different components, one expects xml, the other json). Assume both documents (xml and json) are in the cache. If the app PUTs a modification to the object in XML (ie, changes a User object's email address), it should then be able to retrieve the correct object data via a GET in json. In order to do so, the json object in the cache would need to be invalidated, so that the cache server forwards the request on to the REST service.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              npaxton Norm Paxton
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: