Closed adslaton closed 8 years ago
Adds the ability to set cache control headers on each reply
From the root of this project along with these changes run the following example/app.js:
$ cd example/ $ node app.js
$ curl -I http://{your-app-host}
HTTP/1.1 200 OK surrogate-control: max-age=60, stale-while-revalidate=10, stale-if-error=6400 cache-control: 10 content-type: text/html; charset=utf-8 date: Thu, 17 Mar 2016 01:20:48 GMT X-BACKEND: apps-proxy
@MDrooker the constructor options payload has been updated
Why
Adds the ability to set cache control headers on each reply
How to test
From the root of this project along with these changes run the following example/app.js:
Terminal 1
Terminal 2
Should see a response similar to the following