gobblejs / gobble

The last build tool you'll ever need
333 stars 20 forks source link

Stale content due to lack of Cache-Control headers (dev server) #126

Open msegado opened 7 years ago

msegado commented 7 years ago

The Gobble dev server doesn't set any cache-control headers, which can lead to browsers caching content during development (and some related head-scratching about why the latest changes aren't showing up). Should be easy to fix by adding something like the following to all the server responses:

response.setHeader( 'Cache-Control', 'no-cache' );