diff options
author | Valery Piashchynski <[email protected]> | 2021-04-28 16:43:59 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-04-28 16:43:59 +0300 |
commit | b789df7dcc9268f98f2bacfb40f753b10d521e4f (patch) | |
tree | 126b0fd8271f27e77f9107906bb0e6713a49d6ab /plugins/http/config | |
parent | 30c25f17fa7d6386e33a4894c812f7ca5db990ad (diff) |
- Update CHANGELOG
- Add tests for the etags functionality
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/http/config')
-rw-r--r-- | plugins/http/config/static.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/http/config/static.go b/plugins/http/config/static.go index e9acc3e4..4b7b3a9b 100644 --- a/plugins/http/config/static.go +++ b/plugins/http/config/static.go @@ -17,6 +17,12 @@ type Static struct { // Default - /static/ Pattern string + // CalculateEtag can be true/false and used to calculate etag for the static + CalculateEtag bool `mapstructure:"calculate_etag"` + + // Weak etag `W/` + Weak bool + // forbid specifies list of file extensions which are forbidden for access. // example: .php, .exe, .bat, .htaccess and etc. Forbid []string |