lundi 2 mars 2020

How `Cache-Control` header of a server affects TestCafe server

I have always used http-server (npm package) to serve my static files with their -c-1 flag to disable caching. But it seems like TestCafe doesn't like that. It can see the webpage you are serving only for the first test, but it can't access it for the rest. Does anyone know why?

Looking at http-server code, you can see that if you set the cache value to -1 it will set the header as 'no-cache, no-store, must-revalidate'. How does that affect TestCafe server?

Aucun commentaire:

Enregistrer un commentaire