vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.59k stars 2.08k forks source link

fix(core): prevent http cache module from setting headers after they had been sent #6720

Closed lsliwaradioluz closed 2 years ago

lsliwaradioluz commented 2 years ago

This simple change prevents setting response headers after they had been sent to the client.

Such scenario can happen for example when some middleware redirects the response before it reaches the http cache module logic. image

github-actions[bot] commented 2 years ago

:blue_heart: vsf-next-demo successfully deployed at