Before anything: $. The getJSON back button showing the JSON return data, and not the page did not help, and also https://groups.google.com/group/angular/browse_thread/thread/3787ad609c0beb77/eb1b57069dab9f63 failed, and the Internet did not help either.
Here's the problem:
I call the url from the inside of the page to get json data, which is then processed using jquery templating inside the same page.
Imagine that we are at http://someurl.com/search and we start a query like this
$.ajax({
url: '/searchthis',
cache: false,
type: 'GET',
headers: {
"Accept": "application/json",
},
dataType: 'json'
success: function(data) {
doSomethingWithResults(data);
}
});
Rack's answer has a cache control header that does not have a cache:
Cache-Control:no-cache
, Chrome, "", JSON. IE8. , Enter url .
, , Chrome (. http://code.google.com/p/chromium/issues/detail?id=108425)
, , -, ( ), - URL- ( JSON URL-)