No cache on embedded objects

D

Dave

I have an ASP page with the "no cache" command. I know the ASP file is not
being cached. But the flash file that is embedded in the ASP page is
repeatedly cached by my browser.
Anyone discover a sure-fire method to prevent caching of embedded files?
 
A

Aaron Bertrand - MVP

The nocache command in the ASP file applies only to the ASP file. You can
set this server-wide in IIS' settings (see http://www.aspfaq.com/2022). Or
you can use ASP to append a random number to the src of the movie, e.g.

<param name=movie value='somefile.swf?r=<%=someRandomNumber%>'>

Or, you can rename the Flash movie.

Is the Flash file changing enough that this is actually a problem?
 
D

david grissett

The file will be changed frquently. Once I have an example running, the
windows to insert text will grow. So I do have to have current
information transferred back to the Flash file.

Currently, it will be multiple textboxes importing text from a .txt
file. The textboxes can then be updated and resaved to the .txt file.
 
D

david grissett

The file will be changed frquently. Once I have an example running, the
windows to insert text will grow. So I do have to have current
information transferred back to the Flash file.

Currently, it will be multiple textboxes importing text from a .txt
file. The textboxes can then be updated and resaved to the .txt file.
 
D

Dave

Aaron,

I did plug in the code you provided into the ASP page code. The Flash
file is still caching.
Also tried Actionscript code, within the Flash file, to force the movie to
call upon the server to generate a random variable and then retrieve the
variable in hopes that it would be forced to refresh with each visit. No go.

Does vbScript have a way of forcing an embedded file to reload from the
server?

David
 
A

Aaron Bertrand - MVP

I did plug in the code you provided into the ASP page code. The Flash
file is still caching.

The Flash file, or the text file? Have you considered using a database?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,835
Members
47,382
Latest member
MichaleStr

Latest Threads

Top