Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nox7 committed Aug 30, 2023
1 parent 29fe648 commit f8e46e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/nox-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$nox->mapExtensionToMimeType("svg", "image/svg+xml");

// Mime caches
$nox->addCacheTimeForMime("image/png", 86400 * 60);
$nox->addCacheTimeForMime("image/png", 600);
$nox->addCacheTimeForMime("image/jpeg", 86400 * 60);
$nox->addCacheTimeForMime("text/css", 86400 * 60);
$nox->addCacheTimeForMime("text/plain", 86400 * 60);
Expand Down
2 changes: 1 addition & 1 deletion example/src/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class HomeController extends BaseController{
* @throws ViewFileDoesNotExist
* @throws LayoutDoesNotExist
*/
#[Route("PUT", "/")]
#[Route("GET", "/")]
public function homeView(Request $request): string{
return Renderer::renderView("home.html");
}
Expand Down

0 comments on commit f8e46e6

Please sign in to comment.