You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "George Campbell (JIRA)" <ji...@apache.org> on 2014/06/30 21:29:25 UTC

[jira] [Created] (SHINDIG-1980) For caching, discriminate between requests with the same URL but different headers.

George Campbell created SHINDIG-1980:
----------------------------------------

             Summary: For caching, discriminate between requests with the same URL but different headers.
                 Key: SHINDIG-1980
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1980
             Project: Shindig
          Issue Type: Bug
          Components: Java
            Reporter: George Campbell
            Priority: Minor


If a gadgets.io.makeRequest is made with a header of {'accept': ['text/xml']} and the REFRESH_VALUE left at it's default value of 3600 seconds, XML is returned and the request is cached (as it should be). However, if another request with the same URL is made with a different header, say {'accept': ['application/json']}, the cached XML response is still returned. The caching is not taking into account the different headers and considers the requests to be the same, although they are very different.



--
This message was sent by Atlassian JIRA
(v6.2#6252)