473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

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?
Jul 19 '05 #1
5 1792
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" <dg******@sewanee.edu> wrote in message
news:#2**************@TK2MSFTNGP09.phx.gbl...
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?

Jul 19 '05 #2

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!
Jul 19 '05 #3

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!
Jul 19 '05 #4
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" <dg******@sewanee.edu> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...

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!

Jul 19 '05 #5
> 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?
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Timo | last post by:
I'm trying to make a thread safe object cache without locking. The objects are cached by the id of the data dict given in __new__. Objects are removed from the cache as soon as they are no longer...
1
by: Jim | last post by:
Hi, I have a few questions regarding the cache object: Does the cache object exist through postbacks? The cache object only exists for the current request, right? Is there a way to cache...
0
by: NWx | last post by:
Hi, I discovered a strange (?!?!) issue related objects saved to cache. Let's explain my situation. I have a webform for user registration. Users enter username, password and other info...
2
by: wh | last post by:
I'm not sure what I am trying to do is correct but within a global object I'd like to store an object with a dependency on a specified directory. I am aware that I am able to add a reference to a...
6
by: Param R. | last post by:
Hi all, lets assume my application is running under an app pool that has 2 worker processes servicing requests. Will the Application & Cache objects be the same & concurrent amongst all requests?...
1
by: William Sullivan | last post by:
I'm trying to nail down some issues with the cache in my application. Currently, I have an object that stands between my business logic and database logic called CacheLogic (cute, no?). ...
6
by: Adam | last post by:
On an xp machine, the caching works as expected. I have deployed to a win2k server, and an item I add to the cache expires almost immediately some times and in under a minute in other times. The...
5
by: J055 | last post by:
Hi The following code works on my develeopment machine using the VS web server. When I run the application on 2 other Windows 2003/IIS 6 servers no caching seems to take place at all. Can...
1
by: JX | last post by:
if you cache two usercontrols, and both of which contains either a menu or treeview, then the first time you get the response right, but on second reqeust or any later request where the cached...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.