import { IncomingMessage , ServerResponse } from "http" ; export = function nocache ( ) { return function nocache ( _req , res , next ) { res . setHeader ( "Surrogate-Control" , "no-store" ) ; res . setHeader ( "Cache-Control" , "no-store, no-cache, must-revalidate, proxy-revalidate" ) ; res . setHeader ( "Pragma" , "no-cache" ) ; res . setHeader ( "Expires" , "0" ) ; next ( ) ; } ; } ;