I have a site that is a complete redo of an existing one that is ready to go live. I can't find enough information to make a successful transition to the new site.
I have the new site accessible from a sub domain that points to
public_dev. In theory I could rename
public_html and then rename
public_html. The problem is that content from the current site will be cached.
Basically I'm looking for a way to ask the browser to not use it's cache if it hasn't been to the site since a specific date.
Should I use
header() in PHP or both?