Skip to content

Add a Blazor Cache component #55520

Closed

Description

@danroth27

MVC & Razor Pages have a cache tag helper that can be used to cache part of the rendered output of a page. We should consider if we want to add a Blazor Cache component with similar functionality.

Related features requests from the community:

To support this in Blazor, we'd need to figure out how it would work with Blazor's various render modes.

Activity

  1. ghost added
    area-blazor
    on May 3, 2024
  2. added
    enhancement
    on May 6, 2024
  3. added this to the Backlog milestone on May 6, 2024
  4. ElderJames commented on May 31, 2024

    @ElderJames
    Contributor

    Hello @danroth27 , can I understand that this is to implement the keepalive mechanism in vue?
    In AntDesign Blazor's ReuseTabs component, I implemented a similar mechanism for component state caching, but with instances of the component kept on the page and hidden and displayed by style.

    https://antblazor.com/en-US/experimental/reusetabs

  5. danroth27 commented on May 31, 2024

    @danroth27
    MemberAuthor

    can I understand that this is to implement the keepalive mechanism in vue?

    Maybe? I was mostly motivated by providing parity with the features we have in MVC & Razor Pages. I'm not really familiar enough with the Vue KeepAlive feature to say whether that's the approach we should take, but we welcome the community's thoughts on this.

  6. Kebechet commented on Apr 1, 2026

    @Kebechet

    hopefully this will get to NET11 🤞

  7. added
    on-roadmap
    on Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-blazorenhancementon-roadmap

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions