Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 01:06 PM
Dave
Guest
 
Posts: n/a
Default No cache on embedded objects

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?


  #2  
Old July 19th, 2005, 01:06 PM
Aaron Bertrand - MVP
Guest
 
Posts: n/a
Default Re: No cache on embedded objects

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?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/




"Dave" <dgrisset@sewanee.edu> wrote in message
news:#2liqrTMEHA.3348@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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?
>
>[/color]


  #3  
Old July 19th, 2005, 01:06 PM
david grissett
Guest
 
Posts: n/a
Default Re: No cache on embedded objects


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.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4  
Old July 19th, 2005, 01:06 PM
david grissett
Guest
 
Posts: n/a
Default Re: No cache on embedded objects


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.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #5  
Old July 19th, 2005, 01:06 PM
Dave
Guest
 
Posts: n/a
Default Re: No cache on embedded objects

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

"david grissett" <dgrisset@sewanee.edu> wrote in message
news:erWFiYUMEHA.1348@TK2MSFTNGP10.phx.gbl...[color=blue]
>
> 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.
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it![/color]


  #6  
Old July 19th, 2005, 01:06 PM
Aaron Bertrand - MVP
Guest
 
Posts: n/a
Default Re: No cache on embedded objects

> I did plug in the code you provided into the ASP page code. The Flash[color=blue]
> file is still caching.[/color]

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


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles