Skip to content

[Bug?]: File change breaks Prod if no hard refresh聽#1047

Closed

Description

@MariuzM

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 馃槸

I have Page1 and Page2 if i change something on Page2 and then using Page1 to navigate to Page2 i get error

error loading dynamically imported module: https://****/assets/about-52919eb7.js

I guess its due to the hash of the file name change but my current client session still working with V1 until i do hard refresh.

Is there any plan to work around this?

Expected behavior 馃

Page2 should load without issue even if changes have been made and pushed to prod

Activity

  1. changed the title [-][Bug?]: [/-] [+][Bug?]: File change breaks Prod if no hard refresh[/+] on Sep 4, 2023
  2. MariuzM commented on Sep 4, 2023

    @MariuzM
    Author

    Ive tested with Next.js it looks like its doing hard page refresh before continue fetching new components

  3. ryansolid commented on Dec 19, 2023

    @ryansolid
    Member

    Hmm.. a client side navigation has no way of knowing it is out of date, except from the response.. and we fetch JS in parallel. Unless they have setup some background pinging of versioning I don't see how Next could ever know this. My understanding was that Vercel keeps previous deploys around. Its also possible I suppose that that fetch data before JS and in that case they could know, of course that would be very inefficient.

    In any case this is an idea and if anyone has ideas on how to implement it we can consider making a request.

  4. locked and limited conversation to collaborators on Dec 19, 2023
  5. converted this issue into a discussion #1151 on Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions