Coder Social home page Coder Social logo

Comments (7)

davidnagli avatar davidnagli commented on July 19, 2024 1

+1

from website.

shawwn avatar shawwn commented on July 19, 2024

Sounds like David just volunteered to do this. Good luck, I believe in you!

from website.

davidnagli avatar davidnagli commented on July 19, 2024

ahaha thanks! πŸ€” πŸ˜‚

from website.

devongovett avatar devongovett commented on July 19, 2024

website is using zeit now, not aws directly. zeit should be distributing things around the world automatically. see https://zeit.co/world

from website.

ryanworl avatar ryanworl commented on July 19, 2024

That Zeit World thing appears to be a DNS service. While I’m sure it is fine, querying from a DNS server in Philadelphia (where I am) and the UK (for example) returns the same set of AWS IPs.

Unless I made a mistake here, even if the DNS is distributed, the servers hosting the content are not.

from website.

TimNZ avatar TimNZ commented on July 19, 2024

Sneaky use of this issue to segway into recommended recipe for cache busting file name generation and deployment.

Production builds utilise the filename of the relative path e.g.

<script src='./index.js'></script>

results in an index.js being generated, and other assets using a hash strategy for filenames.

I had a look at posthtml, that has a posthtml-cache plugin that generates uses a query string strategy to modify links, whereas I want a generated filename.

If I have a single publicUrl e.g. https://cdn/assets, will the generated filename hashes of assets ever result in conflicts in different builds which will result in browser caching serving an old version of an asset?
If not, I can optimise uploading of assets to only upload files that doesn't already exist in the CDN.

Thanks for any insights you can provide.
I don't have a lot of experience in CDN/deployment.

Anything Parcel can do to simplify this, or provide Recipes/Guides, is a big step up from everyone else leaving it to devs to figure out through pain.

from website.

devongovett avatar devongovett commented on July 19, 2024

Just enabled zeit's new cdn, which uses cloudflare under the hood. https://zeit.co/blog/now-cdn

from website.

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.