Closed Bug 915259 Opened 13 years ago Closed 10 years ago

Host static content on the CDN for other sites to use.

Categories

(www.mozilla.org :: Bedrock, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: osmose, Unassigned)

Details

(Whiteboard: [kb=1112686] )

The idea came up that since Bedrock puts it's static content on a CDN now, it would be useful to have a static content directory that is dedicated to hosting files for other sites, like our fonts, jQuery, sandstone theme images, etc. For example, careers.mozilla.org could pull in html5shiv.js from www.mozilla.org/media/shared/js/html5shiv.js and, if users have already visited another mozilla property, avoid an extra download of the file since the user already downloaded it. I'd also propose that stuff go in a `shared` folder to ensure that the files don't accidentally get removed or moved; any file that goes in that folder and gets committed should stay in that folder in case another site is depending on it. We'd have to put some thought into directory structure as well, given that commitment. Thoughts?
I'll add this to the research and design column on the mozilla.org kanban board.
Whiteboard: [kb=1112686]
Priority: -- → P3
(In reply to Michael Kelly [:mkelly] from comment #0) > The idea came up that since Bedrock puts it's static content on a CDN now, > it would be useful to have a static content directory that is dedicated to > hosting files for other sites, like our fonts, jQuery, sandstone theme > images, etc. > > For example, careers.mozilla.org could pull in html5shiv.js from > www.mozilla.org/media/shared/js/html5shiv.js and, if users have already > visited another mozilla property, avoid an extra download of the file since > the user already downloaded it. > > I'd also propose that stuff go in a `shared` folder to ensure that the files > don't accidentally get removed or moved; any file that goes in that folder > and gets committed should stay in that folder in case another site is > depending on it. We'd have to put some thought into directory structure as > well, given that commitment. > > Thoughts? Good idea. For sites that want to use CSP, they could just whitelist the CDN.
Is this still needed?
It's still something that would be useful but there's no direct need. There's things like tabzilla that we sort've already do this for, and supposedly somewhere Fira is also hosted on a CDN through something like this. Put another way: If you closed this no one would care. :D
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.