|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Caching Problem
I am sure I am making this more difficult then it really is but here is my problem.
I have a page that is being dynamically created. This page has nothing more then a Table with one row one TD. The table is nothing more then an output of a JPG. This JPG is being created dynamically with GhostScript and is using as its name userid.jpg. When you re run the page a new JPG is generated but it still shows the old one (hence caching issue). Here is what I have tried... 1. <meta http-equiv=Pragma content=no-cache> 2. <cfheader name = "Expires" value = "#Now()#"> <cfheader name = "Cache-control" value = "No-cache, no-store, must-revalidate"> Both I have tried in my Head and other locations on the page. Any help would be greatly appreciated. I know I can "fix" this by just appending a random number to the filename but i dont think that should be the fix. I know there is a way to keep the browser from caching the image. Thanks again. |
|
#2
|
|||
|
|||
|
why don't you want to use a random #? (BTW I would append it the src attr of the image not the page, since that's what you want to avoid caching)
|
|
#3
|
|||
|
|||
|
This is really a browser problem, and how images are cached (and how the cache is handled) are browser-specific. Using a unique image name is probably the best solution.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#4
|
|||
|
|||
|
Thanks
Yeah I already have added on a rand number and it is working. Just this site is very server intense and granted picking a rand number is not a lot but it is some.
Thanks for the responces. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Caching Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|