Dealing with browser cache

Post » Thu Apr 06, 2017 9:13 am

I overwrite all files whenever I export, but I still seem to get an old version sometimes. I guess I need to do more tests to figure out where the issue is coming from.
B
4
S
2
G
5
Posts: 346
Reputation: 2,417

Post » Thu Apr 06, 2017 9:35 am

I think the best way (not the easiest) is to configure whatever webserver you use to send the right cache control headers. But yeah it's kind of frustrating.
https://www.mnot.net/cache_docs/ Might have some help on server configuration.

I've experienced this issue in C2 as well. Previewing in Edge, Chrome was no problem, always got the latest version when reloading, but Mobile browsers and Safari, especially on Mobile NEVER updated unless you cleared cache completely every time. At least there is an easy fix in C2. (Delete offline.appcache)

Are you planning to host your own games? then you probably should check out server configuration.
I only use my own server for testing privately, so I always have access to a build, and can test on different devices whenever I want.
Follow my progress on Twitter
or in this thread Archer Devlog
B
35
S
15
G
17
Posts: 944
Reputation: 12,210

Post » Thu Apr 06, 2017 9:40 am

Maybe this could work as well, but would be annoying as hell to add to your index file every time you export a new version.
Code: Select all
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
Follow my progress on Twitter
or in this thread Archer Devlog
B
35
S
15
G
17
Posts: 944
Reputation: 12,210

Post » Thu Apr 06, 2017 10:32 am

Ah it's not just me then, yeah I was looking to add some kind of cache control header or something.
B
4
S
2
G
5
Posts: 346
Reputation: 2,417

Previous

Return to General Discussion

Who is online

Users browsing this forum: Kyatric and 0 guests