Skip to content

spring.resources.cache.period doesn't work #16488

Closed
@OrangeDog

Description

@OrangeDog

Spring Boot 2.1.4.RELEASE

As far as I can tell, the property spring.resources.cache.period can't ever do anything.
ResourceProperties.Cache.Cachecontrol.toHttpCacheControl will always return an object, therefore this else branch is never taken.

A possible fix is to ensure toHttpCacheControl returns null if no properties are set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions