Skip to content

Menfre01/conditionheader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

condition-header

condition-header is a plugin for traefik that allows you to conditionally add headers to responses.

Configuration

Add plugin:

experimental:
  plugins:
    condition-header:
      moduleName: github.com/Menfre01/conditionheader
      version: v0.0.2

Configure middleware:

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: add-response-header
spec:
  plugin:
    condition-header:
      rules:
        - conditions:
            Content-Type: text/html.*
          headers:
            Cache-Control: no-cache, must-revalidate

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages