How to disable cache in Ajax Post to Url?

Get help using Construct 2

Post » Mon Jun 03, 2013 4:50 am

Hi guys,

I noticed that when I post my score to a php file using the Ajax Post to Url stuff it Works only the first time, the database is updated only once after the first post. I know that my game is ok since I see in Firefox Firebug that the Ajax post is made as programmed but the database is not affected, only if I reload the page of the game.

Could this be related to the Ajax post call being catched? Have you had any similar experience? If the cache is causing the problem how could I set it to disable in C2?

Thanks and have a great evening.
B
5
Posts: 23
Reputation: 821

Post » Sat Jan 18, 2014 6:04 pm

Was wondering the same thing - with non 3rd party, it doesn't appear possible right now.

@ashley - would it be possible to include the option somewhere in the AJAX object to enable/disable caching ?

An example was on this page :

[quote]
$.ajax({url: "myurl", success: myCallback, cache: false});
[/quote]
JohnnySix2014-01-18 18:04:40
Image
B
27
S
9
G
5
Posts: 488
Reputation: 11,948


Return to How do I....?

Who is online

Users browsing this forum: Cubeeo and 34 guests