Skip to content

Commit

Permalink
Update LastModified
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Sep 5, 2023
1 parent d0b2806 commit cbf93c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mechanisms/RappasoftFrontendAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function boot(): void

}

protected function setupJSHeaders(string $lastModified): array
protected function setupJSHeaders(int|false|string $lastModified): array
{
return [
'Content-Type' => 'application/javascript; charset=utf-8',
Expand All @@ -77,7 +77,7 @@ protected function pretendResponseIsJs(string $file): \Symfony\Component\HttpFou
return response()->file($file, $this->setupJSHeaders(filemtime($file)));
}

protected function setupCSSHeaders(string $lastModified): array
protected function setupCSSHeaders(int|false|string $lastModified): array
{
return [
'Content-Type' => 'text/css; charset=utf-8',
Expand Down

0 comments on commit cbf93c2

Please sign in to comment.