stackage-server/static/opensearchpackage.xml
ncaq 05337cd782 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.
2023-08-04 12:21:23 +09:00

16 lines
903 B
XML

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Stackage Packages</ShortName>
<LongName>Stackage.org package page</LongName>
<Description>Just to a Stackage.org package page</Description>
<Developer>FP Complete CORP.</Developer>
<Attribution>Copyright FP Complete CORP.</Attribution>
<AdultContent>false</AdultContent>
<Language>en-us</Language>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Image width="222" height="222" type="image/x-icon">https://www.stackage.org/static/img/stackage.png</Image>
<Url type="text/html" method="GET" template="https://www.stackage.org/package/{searchTerms}"/>
<Query role="example" searchTerms="E.g. bytestring"/>
<moz:SearchForm>https://www.stackage.org</moz:SearchForm>
</OpenSearchDescription>