Which combination of http headers can achieve the following?
I would like static content like images to be cached for as long as possible, but if those images change on the server, I would like the browsers to update them.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A very neat caching approach of static content is to encode version of your static content inside URL. Then “notifiying” browser to download new static content is just a matter of supplying new URLs to the client.
It involves some effort to your build+deploy process but from caching control it is the very simple.