Skip to content

Vue meta and serverCacheKey (LRU Caching) #190

Closed
@mathieumagalhaes

Description

@mathieumagalhaes

I'am seeing wrong meta data when using LRU caching and SSR.
Setting a serverCacheKey in a component's options, will cache the component server side.

Case:
Let's say we have a component A and B with both a serverCacheKey and a different vue meta title.

The following:

<template>
   <A>
      <B></B>
   </A>
</template>

Will result in:
The first load the rendered meta title will be Title B.
A second reload (cache hit) will render title A.

I know this is related to SSR Caching and not directly to Vue Meta.
Still, it would be helpful as I encountered this use case, as such others might aswel.
An example in the docs would do wonders 👍

Request:
SSR + Caching (LRU) components and keep rendering the correct metadata even on a cache hit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions