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

I've FTPed a new installer file (for an app I'm maintaining) up to a server on the web, replacing the old installer file.

My boss has already sent an email to our users saying "get the new installer from this URL on Monday". The URL looks like "http://app.ourwebsite.com/downloads/installer.zip". I'm afraid I can't give you the real URL because there's some sensitive information up there. When I visit the URL though, I get the old installer. This happens in any of my browsers (FF, IE, Chrome), regardless of whether I clear the browser cache, used the browser before to download the file, close and re-open the browser.

If I change the capitalisation of any letter of the file-name part of the URL, I get the new installer.

What's going on here? And more importantly, how do I fix it so that when people visit the URL my boss sent out (in its original capitalisation), they get the right file?

share|improve this question

migrated from webapps.stackexchange.com Apr 3 '11 at 15:51

This question came from our site for power users of web applications.

Append a query string, usually a timestamp, to the end of the filename each time you change it. This will cause the URL to be different and force the browser to fetch a copy of the fresh file.



That query string won't affect the file or the download. It will just force the file to be fresh each time it is changed.


Serve the file through a script that sends no cache headers and then forces the download.



    $file = '/path/to/file/outside/www/installer.php';

    header('Content-Description: File Transfer');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename=' . basename($file));
    header('Content-Transfer-Encoding: binary');
    header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); 
    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    header('Pragma: public');
    header('Content-Length: ' . filesize($file));
share|improve this answer

Your Answer


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