sinopia icon indicating copy to clipboard operation
sinopia copied to clipboard

adds nocache middleware

Open bobzoller opened this issue 9 years ago • 0 comments

I had issues putting sinopia into production because it does not explicitly set caching headers. There are probably smarter, more targeted decisions to be made, but I think a good practice is to set broad no-cache headers early, and adjust them later in the request chain if possible.

This PR accomplishes the first part, setting no-cache headers by default using the helmetjs/nocache middleware.

bobzoller avatar May 01 '15 05:05 bobzoller