Skip to content

Commit

Permalink
broke cache on responses
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nag0n committed Jun 25, 2024
1 parent 82c1af5 commit c8695e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Empty file added app/cache/.keep
Empty file.
3 changes: 3 additions & 0 deletions app/config/config_sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
$app->set('flight.views.extension', '.php'); // set the file extension for your view/template/ui files
$app->set('flight.content_length', true); // if flight should send a content length header

// This breaks the browser cache headers so requests don't get cached. This is good in a dynamic application
$app->response()->header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0');

/*
* Get Tracy up and running
*
Expand Down

0 comments on commit c8695e0

Please sign in to comment.