Skip to content

Commit 285ff59

Browse files
committed
expires
1 parent 2679206 commit 285ff59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/resources.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ std::string ResourcesHandler::HandleRequestThrow(
4040
auto& response = request.GetHttpResponse();
4141
if (file_ptr) {
4242
response.SetContentType(GetContentType(file_ptr->extension));
43+
response.SetHeader(USERVER_NAMESPACE::http::headers::kExpires, "600");
4344
return file_ptr->data;
4445
} else {
4546
auto& response = request.GetHttpResponse();

0 commit comments

Comments
 (0)