From 05337cd78216b43f7241fed0ea640f6b0219116e Mon Sep 17 00:00:00 2001 From: ncaq Date: Fri, 4 Aug 2023 10:28:57 +0900 Subject: [PATCH] fix(opensearch): search url protocol: `http` -> `https` Changed the protocol of the URL used as a custom search engine from `http` to `https`. The reason for this change is that `www.stackage.org` only uses `https`, so every time the custom search engine is used, a redirect from `http` to `https` occurs, sacrificing the cleanliness of the history. On `www.stackage.org`, the HTTP header is set to `strict-transport-security max-age=15724800; includeSubDomains` for HSTS, so there's no need to try connecting via http. This is a bit unclear to me as well, but even though HSTS is set and a redirect is set for subsequent access, it seems that no communication is being made, but it is left in the history. In any case, I think it's wasteful to constantly access http when it's specialized for https to the point of setting HSTS, so I'm making this commit. --- static/opensearchhoogle.xml | 6 +++--- static/opensearchpackage.xml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/opensearchhoogle.xml b/static/opensearchhoogle.xml index 3054183..5c48e7b 100644 --- a/static/opensearchhoogle.xml +++ b/static/opensearchhoogle.xml @@ -8,8 +8,8 @@ en-us UTF-8 UTF-8 - http://www.stackage.org/static/img/stackage.png - + https://www.stackage.org/static/img/stackage.png + - http://www.stackage.org + https://www.stackage.org diff --git a/static/opensearchpackage.xml b/static/opensearchpackage.xml index e70f4b6..ea2ca65 100644 --- a/static/opensearchpackage.xml +++ b/static/opensearchpackage.xml @@ -8,8 +8,8 @@ en-us UTF-8 UTF-8 - http://www.stackage.org/static/img/stackage.png - + https://www.stackage.org/static/img/stackage.png + - http://www.stackage.org + https://www.stackage.org