|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am displaying the employee photo on the top of my ASP page in that there is a button adj. to the image, user can click and upload his/her image. After upload process i'm redirecting to the same page but its not displaying the latest image instead of the same image. But if i right click on the page and say refresh then it displays the image.
If you give me a solution it will be helpful for me. Karan. |
|
#2
|
|||
|
|||
|
I don't think there's a possibility to tell the browser in the code to NOT to get the image from it's cache.
Only solution I know: Just make all your users set their browser to check for newer versions of pages/images every time (via preferences), and you're done . |
|
#3
|
|||
|
|||
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Karan:
I am displaying the employee photo on the top of my ASP page in that there is a button adj. to the image, user can click and upload his/her image. After upload process i'm redirecting to the same page but its not displaying the latest image instead of the same image. But if i right click on the page and say refresh then it displays the image. If you give me a solution it will be helpful for me. Karan.[/quote] ------------------------------------------- Redfox, I forgot to tell one more important point. The image will be created only in the name of employee code so, the first image will be over written by the second image. (Ex: IO20023.jpg) As you said i have give the following code to avoid local caching. Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" Response.Expires = -1 In my office i discussd about it but the said this as a specific bug b'cos they want to sell this app. as a product. Karan. |
|
#4
|
|||
|
|||
|
Not sure on the syntax for ASP but you should be able to perform the redirect and tack on an extra var to the end of the url like a timestamp which is always different it will trick the browser into thinking its never been to the page before something like
I am really not sure on the syntax but somehow tack a timestamp on the end should do the trick response.Redirect("page.asp?ck=".time()); |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Image refresh Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|