On Firefox 12, when I consecutively request two resources with the same URI but with different request headers (different accept fields), response is the cached response of the first request. First request is text/html request of the page which is correctly returned and the second request is like this:
Requested URL is: http://localhost:8080/test/ with these headers:
Response Headers
Content-Type text/html;charset=ISO-8859-1
Date Sun, 29 Apr 2012 19:41:53 GMT
Server Apache-Coyote/1.1
Request Headers
Accept application/json
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection keep-alive
Cookie JSESSIONID=DB75F9F730D72D040CB5781903B60E87
Host localhost:8080
Referer http://localhost:8080/test/
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
X-Requested-With XMLHttpRequest
Do you have any suggestions to avoid this problem? Thanks in advance.