Forum GameFS Slowness

Discussion and help relating to the PlayerIO game asset hosting and CDN solution, GameFS.

Slowness

Postby Ultric » August 30th, 2010, 6:48 pm

I've uploaded two files to my GameFS. One is my swf and the other is an html for viewing the swf in its correct dimensions. When I update the swf, things get wonky. I can view the swf on its own using the link, but my html continues to show the old version of the swf. Any reason for this?
Ultric
 
Posts: 4
Joined: August 25th, 2010, 12:24 am

Re: Slowness

Postby Oliver » August 31st, 2010, 10:20 am

What URL have you embedded into the html ?

The most likely cause is that you're using the relative url to the swf file in the html, like 'mygame.swf'.

This won't work because GameFS deals with caches at multiple levels (browser, cdn-end-node), so when your browser requests 'mygame.swf' directly, it will get the old 'mygame.swf' if it's been cached anywhere up-stream from your machine. This includes browser cache, http proxies/caches and the nearest CDN endpoint to your browser.

Instead, you should reference the file using permanent urls, because they will always redirect to the latest version of the file.
You can find the documentation on permant urls here: http://playerio.com/documentation/gamefs/ (scroll down to the permanent url section).

You can grab the permanent url for your file from the admin panel, under the details for the file.
Image

Hope this helps, let me know if you have further issues.

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am


Return to GameFS



cron