[ 
https://issues.apache.org/jira/browse/SHINDIG-1980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

George Campbell updated SHINDIG-1980:
-------------------------------------

    Description: 
If a gadgets.io.makeRequest is made with a header of:
{code}{'accept': ['text/xml']}{code}
but the REFRESH_VALUE is left at its 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:
{code}{'accept': ['application/json']}{code}
then 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.

  was:
If a gadgets.io.makeRequest is made with a header of:
{code}{'accept': ['text/xml']}{code}
but the REFRESH_VALUE is 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:
{code}{'accept': ['application/json']}{code}
then 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.


> 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:
> {code}{'accept': ['text/xml']}{code}
> but the REFRESH_VALUE is left at its 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:
> {code}{'accept': ['application/json']}{code}
> then 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)

Reply via email to