Skip to content

Use cache validation in serving of files #2242

@Spixmaster

Description

@Spixmaster

I have an HTTP server which among other things serves static files via server->set_mount_point(constant::endpoint::mount_point, constant::directory::shared());.

If I understand correctly, Server::handle_file_request() is responsible for serving files from the mount point. I do not see validation mechanisms like Last-Modified or ETag which would save bandwidth with the only little downside of calculating an identifier like a hash.

There is a tendency that ETag is preferred over Last-Modified.

Good resources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions