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

KarstenS’s picture

Forgot 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).

KarstenS’s picture

Actually 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

Version: 7.19 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.