Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 11 posts ] 
    Jason
  Thu Mar 22, 2012 2:18 am
User avatar
Awesome Bro

Generic Townsperson
Is anyone else having the following problem?:

Basically, I export the game so it's a .html file (Along with other things...), and it's definitely a new build of the demo since I've tried it multiple times now... and when I come to test out the .html file, it's basically making me play an older build of the demo, so I can't see the cool new things I've just added through a public link, it's making it really hard now to share updates with people on the forums, since I'm clearly uploading the correct build, but when I link it to people, it's giving them an older build...

Does anyone know how to fix this or anything, it's REALLY annoying!

_________________
This is a block of text that can be added to posts you make. There is a 9999 character limit.


Top Top
Profile      
 

    MarioSuperStar
  Thu Mar 22, 2012 2:28 am
User avatar
Member

Have you named it as your older builds? Just guessing.
Have you went to the Scirra forums? You may get better help there.

_________________
Life is something to joy, not to profane.


Top Top
Profile      
 

    rosareven
  Thu Mar 22, 2012 2:29 am
House Vidae
User avatar
Sponsor


Location: Australia
It's very annoying. Basically you have to clear your browser cache.

I don't know how to only remove a particularly cache in chrome without removing my entire day worth of cache =/


Top Top
Profile      
 

    Jason
  Thu Mar 22, 2012 2:38 am
User avatar
Awesome Bro

Generic Townsperson
Yeah rosareven, I did try that and it worked, but I don't want EVERYONE to have to do that...

_________________
This is a block of text that can be added to posts you make. There is a 9999 character limit.


Top Top
Profile      
 

    Venetia
  Thu Mar 22, 2012 2:48 am
venerable inertia
User avatar
Staff


Location: velocitating a straight line
Only solution is to name the thing something else so their browsers load it entirely from scratch, without relying on cache.

There are other solutions you can use, but they will be a much larger pain in the ass and involve your editing the html code on every export. You can "trick" browsers with javascript to force reloads based on random query strings ... but unless you know what you're doing, this may cause a lot more of a headache than you're willing to endure.
You could attempt a no-cache meta tag which may cause the user's browser not to cache, but that will affect your game as it will force reloads every 300ms or so.

Honestly I'd just go with a rename.

_________________
Image


Top Top
Profile      
 

    Jason
  Thu Mar 22, 2012 2:49 am
User avatar
Awesome Bro

Generic Townsperson
Can we rename the index.html file to anything else? Because that'd be really great to be honest, I've not actually tried it...

_________________
This is a block of text that can be added to posts you make. There is a 9999 character limit.


Top Top
Profile      
 

    Venetia
  Thu Mar 22, 2012 2:55 am
venerable inertia
User avatar
Staff


Location: velocitating a straight line
OR, tell people with Firefox and Chrome to do [Ctrl]+[F5] on loading.
Yeah I think that should probably work too.
That will force a non-cache reload.

Test it but that might be the easiest method.

_________________
Image


Top Top
Profile      
 

    Amy
  Thu Mar 22, 2012 2:16 pm
User avatar
Staff

Big Dumb Guy
Hi jbrist, not sure if it still works, but try:

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

(Inside <head></head>)

This should tell the browser not to cache the page.

Obviously, it doesn't work with Internet Explorer older versions, because that would be too simple. :kiss:


Top Top
Profile      
 

    Venetia
  Thu Mar 22, 2012 4:33 pm
venerable inertia
User avatar
Staff


Location: velocitating a straight line
That should work, but I don't know if Construct 2 games rely on cache. Wouldn't work if you used cookie-based savegames or things of that nature, would it?
(Couldn't hurt to test anyway :kiss: )

Also it doesn't matter if it doesn't work in NS or <IE9, as C2 games are HTML5 and wouldn't play in those browsers at all anyway :)

_________________
Image


Top Top
Profile      
 

    BlueScope
  Thu Mar 22, 2012 8:36 pm
The Third Man
User avatar



Location: Germany
Including the file via PHP should do the job (with renaming, of course). Wyatt's method would be the best, but as Ven said, no idea if it works.
Worst case, use an iframe for the inclusion... still better than a client-side solution...

_________________
Image

If you have a slightly positive memory of my Power Shift contest game,
you might be interested in this development screenshot...
More info about that soon!


Top Top
Profile      
 

    joannesalfa
  Mon Apr 02, 2012 7:27 am
User avatar
Member

Wyatt wrote:
Hi jbrist, not sure if it still works, but try:

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

(Inside <head></head>)

This should tell the browser not to cache the page.

Obviously, it doesn't work with Internet Explorer older versions, because that would be too simple. :kiss:

That works as well


or


if you make another directory in FTP like version1 folder, version2 folder, etc. If you use this kind of version control.


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


Who is online

Users browsing this forum: No users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group