Giter Club home page Giter Club logo

Comments (8)

philbooth avatar philbooth commented on August 24, 2024

If we're looking into this, should we also look into cache-friendly URLs for static assets?

If we add a hash of the contents to the file name, matching URLs can be served with a Cache-Control: max-age=31536000 header and repeat visits to the content server would not need to download those resources at all. This may have a bigger overall effect than a CDN would (which is not to say I don't think we should move to a CDN too; we should).

from fxa.

shane-tomlinson avatar shane-tomlinson commented on August 24, 2024

If we're looking into this, should we also look into cache-friendly URLs for static assets?

Static resource URLs should be cache friendly already, and served with long lived cache headers:

screen shot 2015-12-18 at 09 24 57

This may have a bigger overall effect than a CDN would (which is not to say I don't think we should move to a CDN too; we should).

The caching is in place to help repeat visits, now we want to speed up the load time of first time visitors.

from fxa.

philbooth avatar philbooth commented on August 24, 2024

Whoops, I'm sorry.

from fxa.

shane-tomlinson avatar shane-tomlinson commented on August 24, 2024

@rfk - is the "work breakdown" portion of this already in progress?

from fxa.

shane-tomlinson avatar shane-tomlinson commented on August 24, 2024

from mtg: @jrgm mentions that we'll have to use a subdomain to serve static resources and we should think about how we can continue to use the same RPM for both stage and prod, w/o performing a rewrite on all of the static HTML files.

from fxa.

rfk avatar rfk commented on August 24, 2024

is the "work breakdown" portion of this already in progress?

nope, those high-level notes are as far as I got with it - this needs an owner to take on the task of actually figuring out and writing up all the details.

from fxa.

rfk avatar rfk commented on August 24, 2024

In the interests of clarity: the desired outcome for this issue is a feature card in https://github.com/mozilla/fxa/tree/master/features describing what we'll need to put in place to use a CDN, and how we'll measure its success.

@shane-tomlinson we took the liberty of assigning this to you during sprint planning meeting; don't hesitate to de-assign yourself if that doesn't seem appropriate :-)

from fxa.

shane-tomlinson avatar shane-tomlinson commented on August 24, 2024

ref mozilla/fxa-content-server#3101, mozilla/fxa-content-server#3447, mozilla/fxa-content-server#3448, mozilla/fxa-content-server#3449

from fxa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.