Skip to content

Commit

Permalink
don't cache responses of the dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Feb 27, 2025
1 parent 671e9f0 commit 06629e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ gaze(['css/**/*.css'], (err, watcher) => {

const server = http.createServer((request, response) => {
return serve(request, response, {
symlinks: true
symlinks: true,
headers: [{
source: '**',
headers: [{
key : 'Cache-Control',
value : 'no-cache'
}]
}]
});
});

Expand Down

0 comments on commit 06629e5

Please sign in to comment.