ecomplus / storefront

Modern and high performant headless eCommerce Storefront. PWA & JAMstack architecture ready for E-Com Plus APIs. Built with Vue.js, extensible through widgets and editable with Netlify CMS.
https://developers.e-com.plus/storefront/
MIT License
100 stars 35 forks source link

Service-Worker-side rendering 😮 #536

Open leomp12 opened 3 years ago

leomp12 commented 3 years ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like Two-level EJS rendering, full prerender some limited pages as fallback and also render EJS first level only (custom delimiters <$= $>) to be final level (<%= %>) rendered on SW for all pages with SW cache low TTL.

Describe alternatives you've considered N/A

Additional context https://javascript.plainenglish.io/an-introduction-to-service-worker-side-templating-858b835d5062 https://github.com/unjs/h3

leomp12 commented 2 years ago

https://astro-sw-demo.netlify.app/blogs/1 (https://github.com/thepassle/astro-service-worker) 👀