ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
96 stars 9 forks source link

bug/use Worker threads for full API routes cache busting in development mode #1105

Closed thescientist13 closed 1 year ago

thescientist13 commented 1 year ago

Related Issue

resolves #1104

https://user-images.githubusercontent.com/895923/235521979-16c01cf7-f966-44db-b0b2-6f326ed3a84e.mov

Summary of Changes

  1. Implement Workers based work around for full API routes cache busting in development mode

Seems to work well enough in a demo repo, not sure if we're missing any other properties, per https://github.com/ProjectEvergreen/greenwood/issues/1048?

TODO

  1. [x] Clean up console logs / debug code
  2. [ ] Creating tracking ticket (GFI) to put all these JSON stringify / parse functions into a util file (including reviver, etc)