Skip to content

Latest commit

 

History

History

nocache

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Nocache

Middleware to set no cache headers.

It follows http:https://wiki.nginx.org/HttpProxyModule

Usage

Import

import "github.com/ngamux/middleware/nocache"

Instance

nocacheMiddleware := nocache.New()

Mount to Ngamux

mux := ngamux.New()
mux.Use(nocacheMiddleware)