CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.55k stars 117 forks source link

Pagefind 1.1.0 output is not stable #638

Open sebbASF opened 5 months ago

sebbASF commented 5 months ago

Running pagefind 1.1.0 several times in succession generates several differently named fragment files with slightly different sizes, and the hash value in pagefind-entry.json changes.

AFAICT this did not happen with 1.0.3

It seems odd that the output should change even though the input has not.

bglw commented 4 months ago

Ah, I'll look into this. Likely something being output from a hashmap in arbitrary order that I should change. Thanks for the pointer!

julbd commented 1 month ago

Same issue. This force Netlify and Cloudflare to reupload the whole index, which can take time with a large number of fragments.