Releases: kataras/httpfs
Releases · kataras/httpfs
v0.0.7
Add new PrefixFS
to support fs.FS
and embed.FS
. Update module to go 1.19
v0.0.6
Add Options.SPA bool
to enable single page application's router to handle the routing.
v0.0.5
Add a PrefixDir(prefix string, fs http.FileSystem)
helper and other minor improvements.
v0.0.4
Add Cache
, MustCache
, CacheOptions
, DefaultCacheOptions
and Verbose
. Remove the EmbeddedDir
as we don't need it anymore. Read the updated examples.
v0.0.3
PushTargetsRegexp: fix sub directories on embedded files
v0.0.2
New Options.PushTargetsRegexp
.
Example:
var opts = httpfs.Options{
IndexName: "/index.html",
PushTargetsRegexp: map[string]*regexp.Regexp{
// "/": regexp.MustCompile("((.*).js|(.*).css|(.*).ico)$"),
// OR:
"/": httpfs.MatchCommonAssets,
},
}