http\Response
[mdref/mdref-http] / http / Env / Response / isCachedByEtag.md
diff --git a/http/Env/Response/isCachedByEtag.md b/http/Env/Response/isCachedByEtag.md
new file mode 100644 (file)
index 0000000..3bccc6b
--- /dev/null
@@ -0,0 +1,13 @@
+# int http\Env\Response::isCachedByEtag([string $header_name = "If-None-Match"])
+
+Manually test the header $header_name of the environment's request for a cache hit.
+http\Env\Response::send() checks that itself, though.
+
+## Params:
+
+* Optional string $header_name = "If-None-Match"  
+  The request header to test.
+
+## Returns:
+
+* int, a http\Env\Response::CACHE_* constant.