mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Fixed navbar twitching, added file types to request cache
This commit is contained in:
@@ -94,7 +94,7 @@ app.UseStaticFiles(new StaticFileOptions
|
|||||||
OnPrepareResponse = ctx =>
|
OnPrepareResponse = ctx =>
|
||||||
{
|
{
|
||||||
string requestPath = ctx.Context.Request.Path.ToString();
|
string requestPath = ctx.Context.Request.Path.ToString();
|
||||||
if (requestPath.EndsWith(".css") || requestPath.EndsWith(".js"))
|
if (requestPath.EndsWith(".css") || requestPath.EndsWith(".js") || requestPath.EndsWith(".png") || requestPath.EndsWith(".ico"))
|
||||||
{
|
{
|
||||||
ctx.Context.Response.GetTypedHeaders().CacheControl =
|
ctx.Context.Response.GetTypedHeaders().CacheControl =
|
||||||
new Microsoft.Net.Http.Headers.CacheControlHeaderValue()
|
new Microsoft.Net.Http.Headers.CacheControlHeaderValue()
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar bg border-bottom box-shadow mb-3">
|
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar bg border-bottom box-shadow mb-3">
|
||||||
<a href="#main-content" class="skip-link btn btn-primary">@T["Jump to content"]</a>
|
<a href="#main-content" class="skip-link btn btn-primary">@T["Jump to content"]</a>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="" asp-area="" asp-controller="Home" asp-action="Index"><img src="/HAM_Banner_xs.png" alt="Logo" style="max-height: 40px;"></a>
|
<a class="" asp-area="" asp-controller="Home" asp-action="Index"><img src="/HAM_Banner_xs.png" alt="Logo" style="max-height: 40px; width: 123px;"></a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||||
aria-expanded="false" aria-label="Toggle navigation">
|
aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
|||||||
Reference in New Issue
Block a user