mirror of
https://github.com/makew0rld/amfora.git
synced 2024-12-04 14:46:29 -05:00
✨ Don't cache client cert domains
This commit is contained in:
parent
5adb676a68
commit
4fbaa978d4
@ -1,6 +1,7 @@
|
|||||||
// Package config initializes all files required for Amfora, even those used by
|
// Package config initializes all files required for Amfora, even those used by
|
||||||
// other packages. It also reads in the config file and initializes a Viper and
|
// other packages. It also reads in the config file and initializes a Viper and
|
||||||
// the theme
|
// the theme
|
||||||
|
//nolint:golint,goerr113
|
||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -41,7 +42,6 @@ var DownloadsDir string
|
|||||||
// Command for opening HTTP(S) URLs in the browser, from "a-general.http" in config.
|
// Command for opening HTTP(S) URLs in the browser, from "a-general.http" in config.
|
||||||
var HTTPCommand []string
|
var HTTPCommand []string
|
||||||
|
|
||||||
//nolint:golint,goerr113
|
|
||||||
func Init() error {
|
func Init() error {
|
||||||
|
|
||||||
// *** Set paths ***
|
// *** Set paths ***
|
||||||
|
@ -458,7 +458,12 @@ func handleURL(t *tab, u string, numRedirects int) (string, bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
page.Width = termW
|
page.Width = termW
|
||||||
|
|
||||||
|
if !client.HasClientCert(parsed.Host) {
|
||||||
|
// Don't cache pages with client certs
|
||||||
go cache.AddPage(page)
|
go cache.AddPage(page)
|
||||||
|
}
|
||||||
|
|
||||||
setPage(t, page)
|
setPage(t, page)
|
||||||
return ret(u, true)
|
return ret(u, true)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user