Giter Site home page Giter Site logo

Comments (4)

YoranBrondsema avatar YoranBrondsema commented on May 27, 2024 3

I was bit by the same bug but with a different consequence. I only modified an asset. This caused the asset map to change but vendor.js remained the same. Even though ember-cli-ifa modifies vendor.js, it does not modify the fingerprint. Therefore, the deploy addon ember-cli-deploy-s3 didn't upload the modified version of vendor.js as it assumes that when the fingerprint is the same, the file hasn't changed.

So basically, the main cause is that this addon breaks the same fingerprint === same file invariant. This can cause problems for situations where this invariant is assumed, e.g. during deploy or with caching by a CDN.

We could regenerate the fingerprint for vendor.js here but that require an update of the asset map fingerprint, which would require an update of vendor.js by this addon, which would regenerate the fingerprint for vendor.js, ad infinitum... so that wouldn't work.

Alternatively, if the asset map is not fingerprinted, this solution could work.

I'm open to discussing this and fixing this case!

from ember-cli-ifa.

Turbo87 avatar Turbo87 commented on May 27, 2024 1

this should be resolved by #40 AFAICT

from ember-cli-ifa.

eco3162035 avatar eco3162035 commented on May 27, 2024

Hi there,
After further examination, this issue has nothing to do with fastboot.
I realize I have been brief on the issue, in order to reproduce, create an ember app and enable ember-cli-sri and ember-cli-ifa, configure both. Run the app, and it will not load due to modification of vendor.js after a hash has already been generated for it.

from ember-cli-ifa.

RuslanZavacky avatar RuslanZavacky commented on May 27, 2024

@YoranBrondsema yeap.. as you've described. I suppose to overcome this, you can make assets inline or we might think of fallback to a previous option that we had - separate assets filename to load before app loads.

from ember-cli-ifa.

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.