1
0
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:
makeworld 2020-11-04 19:40:34 -05:00
parent 5adb676a68
commit 4fbaa978d4
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,7 @@
// 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
// the theme
//nolint:golint,goerr113
package config
import (
@ -41,7 +42,6 @@ var DownloadsDir string
// Command for opening HTTP(S) URLs in the browser, from "a-general.http" in config.
var HTTPCommand []string
//nolint:golint,goerr113
func Init() error {
// *** Set paths ***

View File

@ -458,7 +458,12 @@ func handleURL(t *tab, u string, numRedirects int) (string, bool) {
}
page.Width = termW
go cache.AddPage(page)
if !client.HasClientCert(parsed.Host) {
// Don't cache pages with client certs
go cache.AddPage(page)
}
setPage(t, page)
return ret(u, true)
}