set Expires tag for images?

P

Paul W

Hi - I want to reduce the download time of various pages by setting the
'Expires' tag for various images to a future date (this will then stop the
browser from re-requesting these for each new session).

I'm hosting on a commercial service so I don't have direct access to IIS
configuration. Is there anyway I can control this from my server-side code?

Thanks,

Paul.
 
J

Joerg Jooss

Paul said:
Hi - I want to reduce the download time of various pages by setting
the 'Expires' tag for various images to a future date (this will then
stop the browser from re-requesting these for each new session).

I'm hosting on a commercial service so I don't have direct access to
IIS configuration. Is there anyway I can control this from my
server-side code?

Not if the images are served directly by IIS. Your ISP should be able
to change the server configuration to allow for caching.

BTW, you should prefer Cache-Control: max-age over Expires.

Cheers,
 
P

Paul W

Currently the images ARE directly served by IIS. Can you point me to how
else I could do this so I can set the "Cache-Control: max-age"? Thanks,

Paul.
-----------
 
J

Joerg Jooss

Paul said:
Currently the images ARE directly served by IIS. Can you point me to
how else I could do this so I can set the "Cache-Control: max-age"?
Thanks,

You could implemment a HttpHandler that serves your images, but this is
really a waste of time. Ask your service provider to change your IIS
configuration.

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top