Skip to content

Strange offline behaviour #40

@jcrooke

Description

@jcrooke

Sometimes if you lose Internet connection temporarily, the browser will try and load the current path's "index.txt" file - I've tried to determine why and I can only assume it's down to Fastly config.

  1. Load up your statically exported https://site.com (I used Next.js output:"export")
  2. Disable Internet
  3. Browser will attempt to load https://site.com/index.txt
  4. Browser will render the contents of the index.txt file, e.g.;
1:"$Sreact.fragment"
2:I[54869,["3850","static/chunks/3850-0b75591eef433bd6.js?dpl=1750692517149","7763","static/chunks/7763-9643725ec4433c1e.js?dpl=1750692517149","6331","static/chunks/6331-6bb5c51bebe62f9d.js?dpl=1750692517149","8982","static/chunks/8982-e828515016c6d38b.js?dpl=1750692517149","4772","static/chunks/4772-c9279b386799a65b.js?dpl=1750692517149","9291","static/chunks/9291-21785b2e51bfb8c0.js?dpl=1750692517149","3839","static/chunks/3839-c7526b66b5f6b54c.js?dpl=1750692517149","1973","static/chunks/1973-5172adc849c3043a.js?dpl=1750692517149","4548","static/chunks/4548-7347e68fefcbb5ef.js?dpl=1750692517149","8979","static/chunks/8979-a217d86032c59b4f.js?dpl=1750692517149","7976","static/chunks/7976-37810217e5a39064.js?dpl=1750692517149","7177","static/chunks/app/layout-358db0f9642fc35b.js?dpl=1750692517149"],"BodyWrapper"]
... etc...

I'm not sure if this is the only way to replicate this, it might also happen if you deploy and your site becomes out of date.

Has anyone experienced this behaviour before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions