compute-js-static-publish icon indicating copy to clipboard operation
compute-js-static-publish copied to clipboard

Strange offline behaviour

Open jcrooke opened this issue 8 months ago • 1 comments

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?

jcrooke avatar Jun 24 '25 15:06 jcrooke

Your "index.txt" example there looks like RSC output.

Are you able to make a repro? does this happen with any basic Next.js site exported with output:export?

harmony7 avatar Aug 30 '25 03:08 harmony7