Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Nov 22, 2022
1 parent 8fc0571 commit 5de4fca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utilities.go
Expand Up @@ -181,10 +181,11 @@ func GetCustomData(req *http.Request) (data interface{}) {
// a router (or subrouter) from being cached by an upstream proxy and/or client.
//
// As per http://wiki.nginx.org/HttpProxyModule - NoCache sets:
// Expires: Thu, 01 Jan 1970 00:00:00 UTC
// Cache-Control: no-cache, private, max-age=0
// X-Accel-Expires: 0
// Pragma: no-cache (for HTTP/1.0 proxies/clients)
//
// Expires: Thu, 01 Jan 1970 00:00:00 UTC
// Cache-Control: no-cache, private, max-age=0
// X-Accel-Expires: 0
// Pragma: no-cache (for HTTP/1.0 proxies/clients)
func NoCache(w http.ResponseWriter, req *http.Request) {

// Delete any ETag headers that may have been set
Expand Down

0 comments on commit 5de4fca

Please sign in to comment.