Issue with OutputCache in Blazor SSR #55534
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-ssr
feature-output-caching
investigate
Milestone
Is there an existing issue for this?
Describe the bug
Initially, everything functions as expected. However, upon adding the OutputCache attribute, two significant issues arise
I am using BlazorPageScript nuget package provided by @MackinnonBuck to work with PageScript
If I remove
@attribute [OutputCache(Duration = 2000)]
it works fine.Additionally, I've created a Video demonstrating the precise steps to replicate the issues.
untitled-video-made-with-clipchamp-1_MSVCQOmj.mp4
Expected Behavior
should works and navigating to #elements in same page should not reload pages multiple times.
Steps To Reproduce
Repo link to reproduce this issue.
minimalistic project which reproduces this issue
Exceptions (if any)
No response
.NET Version
8.0.204
Anything else?
No response
The text was updated successfully, but these errors were encountered: