mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +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
587 B
Text
15 lines
587 B
Text
@{
|
|
ViewData["ErrorTitle"] = "429 - Too Many Requests";
|
|
}
|
|
|
|
<p class="lead-login">
|
|
Please send requests slower. Or face the wrath of <a href="https://twitter.com/r0ckstardev" target="_blank">Vin Diesel</a>.
|
|
<br /><br />
|
|
<a href="https://twitter.com/r0ckstardev" target="_blank">
|
|
<img src="~/img/errorpages/429_rockstardev.jpg" alt="Vin is angry because you caused 429" title="Move away that cursor" asp-append-version="true" />
|
|
</a>
|
|
<br /><br />
|
|
You sure you want to risk that?
|
|
<br /><br />
|
|
Slowly <a href="/">navigate back to home</a>.
|
|
</p>
|