MCPcopy
hub / github.com/gofiber/fiber / Fresh

Method Fresh

req_interface_gen.go:73–73  ·  view source on GitHub ↗

Fresh returns true when the response is still “fresh” in the client's cache, otherwise false is returned to indicate that the client cache is now stale and the full response should be sent. When a client sends the Cache-Control: no-cache request header to indicate an end-to-end reload request, this

()

Source from the content-addressed store, hash-verified

71 // reload request, this module will return false to make handling these requests transparent.
72 // https://github.com/jshttp/fresh/blob/master/index.js#L33
73 Fresh() bool
74 // Get returns the HTTP request header specified by field.
75 // Field names are case-insensitive
76 // Returned value is only valid within the handler. Do not store any references.

Callers 15

Test_Ctx_FreshFunction · 0.65
Test_CSRF_WithSessionFunction · 0.65
Test_Session_MiddlewareFunction · 0.65
Test_Session_WithConfigFunction · 0.65
FreshMethod · 0.65
Test_Store_GetByIDFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 15

Test_Ctx_FreshFunction · 0.52
Test_CSRF_WithSessionFunction · 0.52
Test_Session_MiddlewareFunction · 0.52
Test_Session_WithConfigFunction · 0.52
Test_Store_GetByIDFunction · 0.52
Test_SessionFunction · 0.52