The core page cache, if enabled, caches the access denied page for protected downloads at system/files/private/foo.bar if/when an anonymous does not have access (expired or already-used download link)

Then, later anonymous users will receive this access denied page when attempting to download the file, even if they have a session which should grant them access.

Solution is for wpd to disable the page cache for files it protects.

CommentFileSizeAuthor
wpd-cache.patch837 bytesmfb

Comments

berliner’s picture

Status: Needs review » Fixed

This makes sense. I wasn't aware that files routed through system/files are cached too.
Since drupals page cache is url based, we certainly don't want the downloads page to be cached as neither. So I added this to the function webform_protected_downloads_download_page() as well.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.