expires

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2016 License: MIT Imports: 6 Imported by: 9

README

caddy-expires

Provides a directive to add expires headers to certain paths

Usage

Add an expires block to your CaddyFile

expires {
    match [a valid regexp] [1y1m1d1h1i1s]
}

Duration can be any combination of y(ear), m(onth), d(ay), h(our), i(minute), s(econd). Parts can be omitted but must remain in that order

If a path matches, an Expires header is set (don't forget to version your assets)

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL