Jump to content

Force Scene Load not from Cache


ChrisR
 Share

Recommended Posts

I have seen this posted in a few places, but nothing to solve loading a babylon file not from the browser cache. There was a bit on the manifest file being loaded from cache, but not the file itself. See: http://www.html5gamedevs.com/topic/6906-problem-with-manifest-cache-new-file-version-not-downloaded/

 

So i just tried to do the same sort of thing with my babylon file. 

BABYLON.SceneLoader.Load(rootUrl, sceneFilename + '?' + (new Date()).getTime(), engine, function(newScene){});

This works, however now the manifest file its looking for is scenefilename?590395035353.manifest&590395035354 .

 

So it will never find a manifest file (which isn't a problem really when i want it to not load from cache.) the problem is that the program hangs for a second while looking for this manifest file? i assume because its name is just not cool for browsers or something of that sort.

 

Is there a better way to force the file to always load a new copy of the file?

 

I also tried to implement a download manager in php that forced the headers to 

header("Cache-control: private");

However that wasn't working as babylonjs would just hang and write an error out "unexpected end of input". 

 

Thoughts?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...