commit dd8fdf2286289b8886ad3761415b94b2cd1ac62f
parent 45cd9a08ca226df7d1dc840917d44f6a1ff71301
Author: Andrew Laack <andrew@laack.co>
Date: Sun, 4 Oct 2026 00:18:24 -0500
history caching for cert sites; this was bugging me
Diffstat:
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/README b/README
@@ -70,7 +70,7 @@ requests to hosts you'd use an identity for.
When you visit a page, the page will be cached after it's loaded.
If the page was in the prefetch cache before, it will be upgraded to the
history cache. This is because visited pages are more important than
- prefetched ones. History caching is disabled when using an identity.
+ prefetched ones.
Identities
==========
diff --git a/src/browser.cpp b/src/browser.cpp
@@ -137,9 +137,7 @@ bool Browser::goToSite(std::string url, bool addToHistory, bool refresh) {
Identity id = identityManager.getIdentityForURI(destination->getLinkDestination());
if(urlString.find("gemini://") != std::string::npos && !refresh) {
- if(id.crtPath == "" && id.keyPath == "") {
- site = findInCacheAndPromoteIfRelevant(urlString);
- }
+ site = findInCacheAndPromoteIfRelevant(urlString);
}
if(site == nullptr) {
@@ -177,7 +175,7 @@ bool Browser::goToSite(std::string url, bool addToHistory, bool refresh) {
if(urlString.find("gemini://") != std::string::npos) {
int sc = site->getStatusCode();
- if(sc >= 20 && sc <= 29 && id.keyPath == "" && id.crtPath == "") {
+ if(sc >= 20 && sc <= 29) {
visitedCache->addSite(urlString, *site);
}
}