I have a 110kb flash header that seems to be reloaded with every page. I have access to the source code so is there anything I can do to make sure it gets cached? Because it makes for a slight annoying hitch in pageloads.
Adding the header as described in the JavaScript hack will indeed result in a visible glitch. This is not because the file isn't cached, but because the JavaScript adds it after the page has already loaded.
Since you have access to your source code I'd recommend that you add it with PHP. Just edit this file: /widgets/index/templates/embed/header.php.
Hey there, I'm actually doing it that way, not with the JavaScript hack. For some reason, the header doesn't get cached... I know that somewhere Ning forces the browser to refresh pages and not cache them but then again, certain images do seem (not sure) to get cached because I don't see any loading time on them. So I'm wondering: can I set the 'no-cache' cachecontrol metatag to somehow make an exception for the flash header? Or can I perhaps do something with the code of the flash header to fix this? (I'm using swfobject)
I found what was like 60% of the problem: my '' line was right before the point where I actually load the swf, I moved that line all the way up to right after the page title and that does speed things up. Any other tips are more than welcome!