Giter Site home page Giter Site logo

Comments (7)

samgiles avatar samgiles commented on August 30, 2024

1 hour seems short for a service such as this. Polyfills are rarely going to change except perhaps after a deployment, is there any reason in particular for 1 hour?

from polyfill-service.

triblondon avatar triblondon commented on August 30, 2024

We might release a new polyfill or a bugfix for an existing one, and then
the TTL will determine how quickly it rolls out. I'd say it should be a
day at the most.

from polyfill-service.

commuterjoy avatar commuterjoy commented on August 30, 2024

This thread does raise the question of versioning (in the URL). You don't want to be waiting an hour (or a day) for anything critical to be pushed out.

from polyfill-service.

triblondon avatar triblondon commented on August 30, 2024

Well, as long as the service doesn't prohibit random query string arguments, versioning on the URL is out of scope here. A product can use them, or not, as it likes. There is obviously a big cache efficiency implication to advising all developers to add them though.

from polyfill-service.

samgiles avatar samgiles commented on August 30, 2024

We could add a Last-Modified header and a shorter TTL?

from polyfill-service.

triblondon avatar triblondon commented on August 30, 2024

Last mod doesn't help predict when it will next change. Let's go with a day, Matt and co can use query string versions, and if versioning causes cache degradation, we can address that.

from polyfill-service.

triblondon avatar triblondon commented on August 30, 2024

Last mod is also hard to compute because the output is a bundle. You'd have to take the most recently modified polyfill in the bundle. Not worth it.

from polyfill-service.

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.