Anthony Jones wrote on 17 okt 2008 in
microsoft.public.inetserver.asp.general:
Quote:
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcomwrote in message
news:%231VhmU$LJHA.5060@TK2MSFTNGP02.phx.gbl...
Quote:
>Paulo wrote:
Quote:
>>Hi, how do I force the asp to read the imgs files on server without
>>making changings on IE settings like checking: Every visit on
>>page...?
>>>
>>Any hint? any classic asp code line?
>>>
>
http://www.aspfaq.com/show.asp?id=2022
>>
>
That article relates to the caching of responses from an ASP page.
However the question really related to the caching of the imgs which
are not normally served up by ASP. IOW this is an IIS question not a
ASP one.
>
The images should be placed in a common folder (or set of folders in a
common root folder). In IIS manager open properties on the folder and
go to the HTTP Headers tab. Turn on expiry and set to expiry today at
midnight. Add a custom header Cache-Control: no-cache.
>
That will sort the problems with cached images out.
Indeed "normally".
But for the "admormal" that have no access to the IIS internals.
To accomodate the latter the images could be called by the client from an
nonexisting directory, and on arrival at 404.asp detected and streamed to
the client after setting headers as in
<
http://classicasp.aspfaq.com/general...sp-pages-from-
caching.html>
Perhaps even a
server.transfer "/realdir/myImage.jpg"
is possible, but I never tested that.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)