Page MenuHomePhabricator

Existing files not set to CDNable
Closed, ResolvedPublic

Description

T5685 introduced the notion of CDNable files, vs those that required a login to view. With the plan:

We set that flag on all existing files, and on profile pictures and any other kind of public artifact (maybe thumbnails).

However, after updating to T5685 per-existing files have Cacheable: No which is a breaking behavior change. Newly creating macros are correctly defaulting to Cacheable.

Revisions and Commits

Restricted Differential Revision
Restricted Differential Revision
Restricted Differential Revision

Event Timeline

cburroughs raised the priority of this task from to Needs Triage.
cburroughs updated the task description. (Show Details)
cburroughs added a project: Files.
cburroughs added a subscriber: cburroughs.

Oh -- I think the migration set canCDN but we're checking for cancdn at runtime. Let me fix this quickly and maybe we can do a followup migration to clean it up.

epriestley added a revision: Restricted Differential Revision.Aug 14 2014, 3:35 PM

Let me know if D10264 fixes the issue for you. If it does, I'll migrate to clean this up.

Hmm so with master + this patch I see 'Cacheable: Yes' , but image urls still 404 if not logged in.

Okay, cool. The actual 404 is a separate issue.

epriestley added a commit: Restricted Diffusion Commit.Aug 14 2014, 7:13 PM

The 404 is fairly messy, I'm just going to swap the bot over to use file.download so it's authenticated.

epriestley added a revision: Restricted Differential Revision.Aug 15 2014, 3:30 PM
epriestley added a revision: Restricted Differential Revision.Aug 15 2014, 3:37 PM
epriestley added a commit: Restricted Diffusion Commit.
epriestley added a commit: Restricted Diffusion Commit.

Closed by commit rPf9de495d0bc3.