Thanks to visit codestin.com
Credit goes to github.com

Skip to content

preload twig function does not append "Link" header in response headers #23737

@thomaskrammer

Description

@thomaskrammer
Q A
Bug report? no
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3.5

I wanted to use the preload function for twig but I do not get the "Link" headers appended to the server response. The problem is that $event->isMasterRequest() in AddHeaderLinkListener class returns false (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/WebLink/EventListener/AddLinkHeaderListener.php#L38)

Can you help me @dunglas ?

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