summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2023-05-25 00:27:55 +0800
committerZhidao HONG <z.hong@f5.com>2023-05-25 00:27:55 +0800
commita378f6aa3136ed7ef172b71add31ee62e560df00 (patch)
tree701fc0e0d348a7f08cf37ed1d43cbef1e0e9d909 /docs
parentce2405ec3dd97e8bdf8f63312e3c6ce59ef562d4 (diff)
downloadunit-a378f6aa3136ed7ef172b71add31ee62e560df00.tar.gz
unit-a378f6aa3136ed7ef172b71add31ee62e560df00.tar.bz2
HTTP: fixed variable caching.
When a variable is accessed in the Unit configuration, the value is cached. This was useful prior to the URI rewrite feature, but now that the URI (more precisely, the request target) can be rewritten, the contents of the variable $uri (which contains the path part of the request target, and is decoded) should not be cached anymore, or at least the cached value should be invalidated after a URI rewrite. Example: { "rewrite": "/prefix$uri", "share": "$uri" } For a request line like GET /foo?bar=baz HTTP/1.1\r\n, the expected file served in the response would be /prefix/foo, but due to the caching issue, Unit currently serves /foo.
Diffstat (limited to 'docs')
-rw-r--r--docs/changes.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/changes.xml b/docs/changes.xml
index 14e65672..29c5c995 100644
--- a/docs/changes.xml
+++ b/docs/changes.xml
@@ -34,6 +34,12 @@ NGINX Unit updated to 1.31.0.
<change type="bugfix">
<para>
+ensure that $uri variable is not cached.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
deprecated options were unavailable.
</para>
</change>