I know this might sound crazy, but is it possible to programmatically add an image to the Content.IE5 cache–as if the image had been viewed by Internet Explorer on a remote server?
It appears that it isn’t good enough to just copy an image to one of the hidden cache folders. I think the image needs to be added to the index and I assume this must be done programmatically.
Anyone know how?
There would have to be an entry in index.dat – searching for “index.dat format” gets you a bit of useful information. I’ve tried extracting data from the cache, which works ok, but obviously writing it is harder, since you have to be more careful with the formatting and the file is pretty much permanently locked.
The fact that the file(s) is locked suggests that I’ll probably need to look for a function to call rather than manipulate the files directly.
After thinking about this a bit, I wonder if what I’m trying to do is considered a security risk. Am I playing with IE’s sandbox? Reading or deleting the cache is one thing, I can see where adding to it is another.
After some more investigation, I’m wondering if I’m going down the wrong path anyway. I was thinking that I needed to add a file to the IE cache so that an AJAXy program I’m looking at would use it’s content, but I wonder if that’s all I need to do or maybe there’s another feature that I need in the AJAX app itself.
Yeah, probably more details would be useful here, but let me hold off on those a bit. In the meantime, I’ve sent off an email to the AJAX-app authors and I’ll see what they have to say.