strange refreshing question

Results 1 to 3 of 3

Thread: strange refreshing question

  1. #1
    Join Date
    Dec 1969

    Default strange refreshing question

    i am writing a personnel system<BR>a user can view their own picture & upload a new one if they think they look too ugly. strange thing happens though when they upload a new picture ... the pc does some wierd caching & wont show the new picture until they exit and re-enter.<BR>response.expires does not solve this .. its not that the page is caching .. just the picture .<BR><BR>any help would help.<BR><BR>big love to you<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: strange refreshing question

    hmm...<BR>if your users access your site through a PROXY SERVER, it could be the proxy is your problem as it caches content too. There is a meta tag to prevent proxy cahcing...something like.."pragma:no-cache"..also, ensure your browser settings check for new versions of the page on every visit,so the browser doesnt cache !<BR>

  3. #3
    Join Date
    Dec 1969

    Default Surefire CACHE prevention...

    If the page where the image is displayed is an ASP page, put this at the top of your ASP page. It&#039;s the sledgehammer way to prevent caching:<BR><BR>&#060;%<BR>Response.Buffer = True<BR>Response.ExpiresAbsolute = Now() - 1<BR>Response.Expires = 0<BR>Response.CacheControl = "no-cache"<BR>%&#062;<BR><BR>If all else fails, attach a randomly generated querystring to the end of the image URL. Like this:<BR><BR>&#060;IMG src="myimage.jpg?8765342"&#062;<BR><BR>No, really, it works. But, you MUST randomly generate the extra querystring value.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts