We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fc0571 commit 5de4fcaCopy full SHA for 5de4fca
utilities.go
@@ -181,10 +181,11 @@ func GetCustomData(req *http.Request) (data interface{}) {
181
// a router (or subrouter) from being cached by an upstream proxy and/or client.
182
//
183
// As per http://wiki.nginx.org/HttpProxyModule - NoCache sets:
184
-// Expires: Thu, 01 Jan 1970 00:00:00 UTC
185
-// Cache-Control: no-cache, private, max-age=0
186
-// X-Accel-Expires: 0
187
-// 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
188
+// Pragma: no-cache (for HTTP/1.0 proxies/clients)
189
func NoCache(w http.ResponseWriter, req *http.Request) {
190
191
// Delete any ETag headers that may have been set
0 commit comments