diff --git a/index.js b/index.js index 0337588..9efdb2f 100644 --- a/index.js +++ b/index.js @@ -17,8 +17,7 @@ function stash(req, res, next) { routeInitialized = true; res.app.get("/"+scriptUrl, (req, res) => { res.set('Cache-control', 'public, max-age=3600'); - var html = fs.readFileSync(__dirname + '/browser/cache-html-part.min.js', 'utf8'); - res.write(html); + res.write(script); res.end(); }) } diff --git a/package.json b/package.json index 9e6b2ef..51d2ff1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cache-html-part", - "version": "1.0.7", + "version": "1.0.8", "description": "cache static parts of web page in browser", "main": "index.js", "scripts": {