Skip to content

our-svg caches the CSS class #58

@drpeck

Description

@drpeck

For the same SVG I have both

<our-svg src="@Model.SiteLogo" class="foo"></our-svg>
<our-svg src="@Model.SiteLogo" class="bar"></our-svg>

With the cache turned on the class attribute is cached and 'foo' is rendered in both locations. I suggest adding the CssClass to the cache key is the simplest workaround. The ideal solution would presumably be to cache the file content rather than the HTML output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions