I'm using drupal restricted to family and friends, so I've switches after some preparation from public to private files, as I also wanted to restrict downloads to authenticated users.
While the public stored files got only downloaded again after changes, the private stored files get downloaded again and again at every request. The browser cache is completely bypassed.
I noticed this extremely as I've let run a colorbox slideshow and it still downloaded the pictures again after the end reached and it went back to start. Using public files caused to use the browser cache, as expected. But not for private files.
Comments
Comment #1
KarstenS commentedForgot to write:
The public files got delivered directly by the webserver.
For the private files I've set up to deliver through drupal (the other thing shouldn't work as the files are stored outside the htdocs folder).
Comment #2
KarstenS commentedActually I've made a solution my own.
First I've installed the module "resumable_download", as many browsers do have issues, when I embed HTML5 videos in a node that is stored in private store and downloads are not resumeable.
Into this module I've integrated the functionality of testing for modifications and returning 304, when not modified.
I've published my solution here: http://drupal.org/node/1927198