You are here: Disable image caching? « HTML « IT news, forums, messages
Disable image caching?

Posted by Noozer on 06/03/05 00:25

I load a webpage on my client PC, change an image file on the server, and
reload the webpage on the client. I still see the orignal image.

Currently I have the following at the top of my page source:
<%
response.ContentType = "image/jpeg"
Response.CacheControl = "no-cache, must-revalidate"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
Response.AddHeader "Last-Modified", date
%>

IIS is set to expire content immediately.

What do I need to do to ensure that the images are fresh from the server
every time? (...and I did search Google and no solutions I could find made
any difference.)

Thx!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация