Skip to content

Releases: kataras/httpfs

v0.0.7

19 Sep 09:25
e42cb94
Compare
Choose a tag to compare

Add new PrefixFS to support fs.FS and embed.FS. Update module to go 1.19

v0.0.6

14 Nov 10:36
Compare
Choose a tag to compare

Add Options.SPA bool to enable single page application's router to handle the routing.

v0.0.5

23 Jul 21:15
Compare
Choose a tag to compare

Add a PrefixDir(prefix string, fs http.FileSystem) helper and other minor improvements.

v0.0.4

22 Jul 19:40
Compare
Choose a tag to compare

Add Cache, MustCache, CacheOptions, DefaultCacheOptions and Verbose. Remove the EmbeddedDir as we don't need it anymore. Read the updated examples.

v0.0.3

18 Jul 08:16
Compare
Choose a tag to compare
PushTargetsRegexp: fix sub directories on embedded files

v0.0.2

18 Jul 01:51
Compare
Choose a tag to compare

New Options.PushTargetsRegexp.

Example:

var opts = httpfs.Options{
	IndexName: "/index.html",
	PushTargetsRegexp: map[string]*regexp.Regexp{
		// "/": regexp.MustCompile("((.*).js|(.*).css|(.*).ico)$"),
                // OR:
		"/": httpfs.MatchCommonAssets,
	},
}

v0.0.1

16 Jul 10:03
Compare
Choose a tag to compare

Initial Release