I'm confused, how do I control cache so my clients can see website edits.

Posted by Jared Christensen on Stack Overflow See other posts from Stack Overflow or by Jared Christensen
Published on 2010-05-06T18:52:42Z Indexed on 2010/05/06 19:18 UTC
Read the original article Hit count: 245

Filed under:
|

I host about 10 websites for clients. Every so often a client will ask for an update to their website. It may be a simple image change, new PDF or a simple text change. I make the change and then send them a link to the web page with the update. About an hour later I will get an email back from the client telling me they still see the old page. I will then explaining to them how to empty their browsers cache. What I'm trying to figure out is if there is a way I can tell their browser that I made an update to the website and that it should reload the page and update the cache. I thought about trying a meta tag but I read that they are not very reliable. Also I would still like the page to cache I just want to be able to clear it when I make an update. Is this possible? I'm an advanced front end web developer (HTML, CSS, Javascript) and know some PHP. Cache is just one of those things I don't really understand that well.

© Stack Overflow or respective owner

Related posts about cache

Related posts about http-header-fields