Skip to content

Commit

Permalink
Fixes cache control for frontend
Browse files Browse the repository at this point in the history
butschster committed May 20, 2023

Verified

This commit was signed with the committer’s verified signature.
williamdes William Desportes
1 parent 14ebc39 commit 1eb6180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Interfaces/Http/FrontendRequest.php
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ public function handle(ServerRequestInterface $request, \Closure $next): Respons
return new Response(
200,
[
'Cache-Control' => 'public, max-age=604800',
'Cache-Control' => 'public, max-age=300',
'Content-Type' => $this->fileContent[$path]['mime'] . '; charset=utf-8',
'Content-Length' => $this->fileContent[$path]['len'],
],

0 comments on commit 1eb6180

Please sign in to comment.