Skip to content

Possibility to set Cache-Control for files served by the standard FilesRouter #6427

Open
@thibautvdu

Description

@thibautvdu

Referencing the closed issue #1857 which has been closed without being apparently solved, I'm looking for a way to set the Cache-Control header for files served with the standard parse server configuration, that is files which are stored on MongoDB through gridfs.

A great solution would be to be able to specify a default value for all the answers given by the FilesRouter and to further fine tune it with key-value pairs 'file extension' - 'Cache-Control value'.

I couldn't find any mention of such an option in the documentation, apart for files delivered through the S3 adapter. This seems to be an important feature when using a CDN, am I missing something such as a possibility to do it over parse through express ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions