Skip to content

Commit c8695e0

Browse files
committed
broke cache on responses
1 parent 82c1af5 commit c8695e0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/cache/.keep

Whitespace-only changes.

app/config/config_sample.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
$app->set('flight.views.extension', '.php'); // set the file extension for your view/template/ui files
3737
$app->set('flight.content_length', true); // if flight should send a content length header
3838

39+
// This breaks the browser cache headers so requests don't get cached. This is good in a dynamic application
40+
$app->response()->header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0');
41+
3942
/*
4043
* Get Tracy up and running
4144
*

0 commit comments

Comments
 (0)