Jump to content

Flash SWF not caching!


Recommended Posts

This is a tough one to look up for me. And I am quite certain that there is a code issue on the site. Unlike most sites, the browser (for now, lets say IE and Firefox) are not caching Flash objects on a webpage. This object happens to be the menu, and it appears on every page. So we start on Index.html (it is written in XHTML) the flash object loads (it shows loading bar) and loads up. This takes maybe 10 seconds.

So then we click to go to a different page from the menu, or from a link on the page. Instead of using the cached SWF, it reloads it all over again. Now, it only does this when going to a new page that hasn't been visited before. If you go back to a page you've visited before, it pulls the SWF from cache.

So what could be causing this behaviour? There is no content expiry tags, no no-cache tags or anything like that. When I tried looking it up, all I found were sites that talked about how to block caching.

Any ideas?

Link to comment
Share on other sites

  • 1 month later...

The only thing I can think of is to make sure that the generated HTML-pages

point to the same flash-object in the address-space.

After that you'll have to make sure the server returns a 304 ("Not Modified")

status when the object is retrieved for a second (or more) time.

Greetz,

Peter.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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