Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I set expiry date for an image?

Is this a server side operation or can it be done as an html tag attribute?

What if I only want to set different expiry dates for different images/resources?

share|improve this question

You're asking about the Expires header, which is sent by the server along with the HTTP response.
It is controlled by the server; for more details, consult your server's documentation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.