Skip to content

Commit f25fe90

Browse files
committed
documented the new feature in srcache_store_skip.
1 parent 7efc517 commit f25fe90

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ srcache_store_skip
512512

513513
The `<flag>` argument supports Nginx variables. When this argument's value is not empty *and* not equal to `0`, then the storing process will be unconditionally skipped.
514514

515+
Starting from the `v0.25` release, the `<flag>` expression (possibly containing Nginx variables) can be evaluated up to twice: the first time is right after the response header is being sent and when the `<flag>` expression is not evaluated to true values it will be evaluated again right after the end of the response body data stream is seen. Before `v0.25`, only the first time evaluation is performed.
516+
515517
Here's an example using Lua to set $nocache to avoid storing URIs that contain the string "/tmp":
516518

517519
```nginx

doc/HttpSRCacheModule.wiki

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ When <code>0</code> is specified (the default value), there's no limit check at
410410

411411
The <code><flag></code> argument supports Nginx variables. When this argument's value is not empty ''and'' not equal to <code>0</code>, then the storing process will be unconditionally skipped.
412412

413+
Starting from the <code>v0.25</code> release, the <code><flag></code> expression (possibly containing Nginx variables) can be evaluated up to twice: the first time is right after the response header is being sent and when the <code><flag></code> expression is not evaluated to true values it will be evaluated again right after the end of the response body data stream is seen. Before <code>v0.25</code>, only the first time evaluation is performed.
414+
413415
Here's an example using Lua to set $nocache to avoid storing URIs that contain the string "/tmp":
414416

415417
<geshi lang="nginx">

0 commit comments

Comments
 (0)