Quantcast
Channel: Is Safari on iOS 6 caching $.ajax results? - Stack Overflow
Browsing all 27 articles
Browse latest View live

Answer by fred1234 for Is Safari on iOS 6 caching $.ajax results?

I suggest a workaround to modify the function signature to be something like this: getNewRecordID(intRecordType, strTimestamp) and then always pass in a TimeStamp parameter as well, and just discard...

View Article



Answer by jchook for Is Safari on iOS 6 caching $.ajax results?

In Ruby's Sinatra before '*' do if env['REQUEST_METHOD'] == 'POST' headers 'Cache-Control' => 'no-cache, no-store, must-revalidate' end end

View Article

Answer by Adriano Rosa for Is Safari on iOS 6 caching $.ajax results?

While my login and signup pages works like a charm in Firefox, IE and Chrome... I've been struggling with this issue in Safari for IOS and OSX, few months ago I found a workaround on the SO. <body...

View Article

Answer by Lanello for Is Safari on iOS 6 caching $.ajax results?

I think you have already resolved your issue, but let me share an idea about web caching. It is true you can add many headers in each language you use, server side, client side, and you can use many...

View Article

Answer by Brian Ogden for Is Safari on iOS 6 caching $.ajax results?

Things that DID NOT WORK for me with an iPad 4/iOS 6: My request containing: Cache-Control:no-cache //asp.net's: HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache) Adding...

View Article


Answer by Jonathan for Is Safari on iOS 6 caching $.ajax results?

This JavaScript snippet works great with jQuery and jQuery Mobile: $.ajaxSetup({ cache: false, headers: { 'Cache-Control': 'no-cache' } }); Just place it somewhere in your JavaScript code (after jQuery...

View Article

Answer by ShadeTreeDeveloper for Is Safari on iOS 6 caching $.ajax results?

I was able to fix my problem by using a combination of $.ajaxSetup and appending a timestamp to the url of my post (not to the post parameters/body). This based on the recommendations of previous...

View Article

Answer by cbmeeks for Is Safari on iOS 6 caching $.ajax results?

For those that use Struts 1, here is how I fixed the issue. web.xml <filter> <filter-name>SetCacheControl</filter-name>...

View Article


Answer by kiranvj for Is Safari on iOS 6 caching $.ajax results?

From my own blog post iOS 6.0 caching Ajax POST requests: How to fix it: There are various methods to prevent caching of requests. The recommended method is adding a no-cache header. This is how it is...

View Article


Answer by remcoder for Is Safari on iOS 6 caching $.ajax results?

This is an update of Baz1nga's answer. Since options.data is not an object but a string I just resorted to concatenating the timestamp: $.ajaxPrefilter(function (options, originalOptions, jqXHR) { if...

View Article

Answer by Lars Høidahl for Is Safari on iOS 6 caching $.ajax results?

A quick work-around for GWT-RPC services is to add this to all the remote methods: getThreadLocalResponse().setHeader("Cache-Control", "no-cache");

View Article

Answer by Dave for Is Safari on iOS 6 caching $.ajax results?

I hope this can be of use to other developers banging their head against the wall on this one. I found that any of the following prevents Safari on iOS 6 from caching the POST response: adding...

View Article

Answer by Spiff for Is Safari on iOS 6 caching $.ajax results?

That's the work around for GWT-RPC class AuthenticatingRequestBuilder extends RpcRequestBuilder { @Override protected RequestBuilder doCreate(String serviceEntryPoint) { RequestBuilder requestBuilder =...

View Article


Answer by CM Kanode for Is Safari on iOS 6 caching $.ajax results?

I found one workaround that makes me curious as to why it works. Before reading Tadej's answer concerning ASP.NET web service, I was trying to come up with something that would work. And I'm not saying...

View Article

Answer by fbader for Is Safari on iOS 6 caching $.ajax results?

In order to resolve this issue for WebApps added to the home screen, both of the top voted workarounds need to be followed. Caching needs to be turned off on the webserver to prevent new requests from...

View Article


Answer by Sam Shiles for Is Safari on iOS 6 caching $.ajax results?

You can also fix this issue by modifying the jQuery Ajax function by doing the following (as of 1.7.1) to the top of the Ajax function (function starts at line 7212). This change will activate the...

View Article

Answer by Boris for Is Safari on iOS 6 caching $.ajax results?

It worked with ASP.NET only after adding the pragma:no-cache header in IIS. Cache-Control: no-cache was not enough.

View Article


Answer by Alexandre for Is Safari on iOS 6 caching $.ajax results?

My workaround in ASP.NET (pagemethods, webservice, etc.) protected void Application_BeginRequest(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); }

View Article

Answer by Ivo Jansch for Is Safari on iOS 6 caching $.ajax results?

While adding cache-buster parameters to make the request look different seems like a solid solution, I would advise against it, as it would hurt any application that relies on actual caching taking...

View Article

Answer by goker.cebeci for Is Safari on iOS 6 caching $.ajax results?

Finally, I've a solution to my uploading problem. In JavaScript: var xhr = new XMLHttpRequest(); xhr.open("post", 'uploader.php', true); xhr.setRequestHeader("pragma", "no-cache"); In PHP:...

View Article
Browsing all 27 articles
Browse latest View live




Latest Images