mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
Cache static assets for one year and set the correct cache control header. Adds the cache busting version based on file content to asset references to invalidate the cache on change. ([further details on the approach](https://andrewlock.net/adding-cache-control-headers-to-static-files-in-asp-net-core/) and [why one year](https://ashton.codes/set-cache-control-max-age-1-year/)) Most of the changes are the additions of the `asp-append-version="true"` attribute, the main configuration change is in `Startup.cs`.
15 lines
595 B
Text
15 lines
595 B
Text
@{
|
|
ViewData["ErrorTitle"] = "500 - Internal Server Error";
|
|
}
|
|
|
|
<p class="lead-login">
|
|
Whoops, something really went wrong! <a href="https://twitter.com/mrkukks">Mr Kukks</a> is so sorry.
|
|
<br /><br />
|
|
<a href="https://twitter.com/mrkukks" target="_blank">
|
|
<img src="~/img/errorpages/500_mrkukks.jpg" alt="Mr Kukks puppy eyes" title="The most innocent look you'll ever see" asp-append-version="true" />
|
|
</a>
|
|
<br /><br />
|
|
Consult server log and consider submitting issue on BTCPayServer GitHub.
|
|
<br /><br />
|
|
<a href="/">Navigate back to home</a>.
|
|
</p>
|