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

Posted by Noozer on 06/05/05 17:04

"Toby Inkster" <usenet200504@tobyinkster.co.uk> wrote in message
news:pan.2005.06.02.22.42.15.387983@tobyinkster.co.uk...
> Noozer wrote:
>
> > 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
> > %>
>
> At the top of the *page* or the top of the *image*. You need to send these
> headers with the *image*. (Alternatively, just change the image file name
> every time you update it.)

Doh!

Thanks... Moving it to the image seems to have it working as needed. I
assumed that at the top of the page I was telling it not to cache any
images.

 

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

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