Tectu / malloy

A cross-platform C++20 library providing embeddable server & client components for HTTP and WebSocket.
BSD 3-Clause "New" or "Revised" License
66 stars 8 forks source link

HTTP server: Add cache control #117

Closed Tectu closed 2 years ago

Tectu commented 2 years ago

Malloy is currently lacking the ability to set HTTP fields such as Cache-Control. This is especially important when serving assets such as via router::add_file_serving().

Tectu commented 2 years ago

Never mind... this was already implemented. There is an overload of router::add_file_serving() which additionally takes a callable for populating the Cache-Control field.