summaryrefslogtreecommitdiff
path: root/plugins/http/config/static.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http/config/static.go')
-rw-r--r--plugins/http/config/static.go6
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