Ajax requests and caching

Discussion and feedback on Construct 2

Post » Thu Oct 31, 2013 11:10 pm

Hi,

I would like to know what happen if i make an app that load a 50megs file (XML file that contains some definition) via an ajax call. If the user go back.. does this file are kept in browser cache (along with the game html5 client) ?

Thanks!
B
16
S
5
G
1
Posts: 190
Reputation: 2,489

Post » Fri Nov 01, 2013 12:09 pm

It depends on the cache directives that the server sends back in the HTTP response.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Sat Nov 02, 2013 12:25 am

But do this still apply ? https://www.scirra.com/tutorials/70/offline-games-in-construct-2
B
16
S
5
G
1
Posts: 190
Reputation: 2,489

Post » Sat Nov 02, 2013 1:19 pm

If you AJAX request a project file, it's stored in the offline cache. Any other file you request will not be and will require an internet connection to load.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Tue Nov 05, 2013 5:38 pm

Alright thanks for clarification!
B
16
S
5
G
1
Posts: 190
Reputation: 2,489


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 16 guests