There are many ways to prevent a page from being cached:
- Set the expiry in the server
- Set the expiry using PHP
- Set the expiry using .htaccess
- Use cache manifest file to control the cache
- Use meta tag to control the cache
(This list is sort of in order of better to worse )
To force the fresh download of a file, you can append a unique query string to the URL, e.g.
I use Date object to generate unique numbers.