Be a Supporter!

Chrome's Stupid Cache

  • 480 Views
  • 4 Replies
New Topic Respond to this Topic
dartosgamer
dartosgamer
  • Member since: Jun. 26, 2012
  • Offline.
Forum Stats
Member
Level 04
Game Developer
Chrome's Stupid Cache Sep. 14th, 2012 @ 06:17 PM Reply

How do I force chrome to refresh the cache for my game. I made one with the version control but it won't update in chrome. So... how do I do that?

thanks in advance,
Dartos


I gave it a shot and for some magical reason all is well. Thank you good sir.

Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to Chrome's Stupid Cache Sep. 14th, 2012 @ 06:37 PM Reply

At 9/14/12 06:17 PM, dartosgamer wrote: How do I force chrome to refresh the cache for my game. I made one with the version control but it won't update in chrome. So... how do I do that?

thanks in advance,
Dartos

Ctrl + F5 or Ctrl + R, IIRC.

dartosgamer
dartosgamer
  • Member since: Jun. 26, 2012
  • Offline.
Forum Stats
Member
Level 04
Game Developer
Response to Chrome's Stupid Cache Sep. 14th, 2012 @ 06:48 PM Reply

No, how to I force it to do that from the flash game? So other people who try to play the updated version, but played the older version, can play.


I gave it a shot and for some magical reason all is well. Thank you good sir.

Mattster
Mattster
  • Member since: Nov. 21, 2007
  • Offline.
Forum Stats
Member
Level 20
Game Developer
Response to Chrome's Stupid Cache Sep. 14th, 2012 @ 07:41 PM Reply

At 9/14/12 06:48 PM, dartosgamer wrote: No, how to I force it to do that from the flash game? So other people who try to play the updated version, but played the older version, can play.

Where is the game hosted? There are a variety of different methods, but these vary depending on where you intend on having your game.

ie the NG API supports a "New Version" event. If you host it on your site you can simply add a cache break to the source url.

dartosgamer
dartosgamer
  • Member since: Jun. 26, 2012
  • Offline.
Forum Stats
Member
Level 04
Game Developer
Response to Chrome's Stupid Cache Sep. 14th, 2012 @ 10:27 PM Reply

It's hosted here but the New Version doesn't work. I set up the version control in the project manager and the API.connect function correctly then I check for event.data.newVersion and it doesn't redirect.

It's quite discouraging.


I gave it a shot and for some magical reason all is well. Thank you good sir.