1
0
mirror of https://github.com/typemill/typemill.git synced 2025-01-17 05:18:19 +01:00

Version 1.4.7: Check for no-cache header to refresh navigation

This commit is contained in:
trendschau 2021-06-22 22:08:49 +02:00
parent 5be1d6c081
commit 64d45c67c1

View File

@ -11,7 +11,7 @@ class WriteCache extends Write
*/
public function validate($folderName, $fileName, $duration)
{
if(isset($_SERVER['HTTP_CACHE_CONTROL']) && $_SERVER['HTTP_CACHE_CONTROL'] == 'max-age=0')
if(isset($_SERVER['HTTP_CACHE_CONTROL']) && ( $_SERVER['HTTP_CACHE_CONTROL'] == 'max-age=0' OR $_SERVER['HTTP_CACHE_CONTROL'] == 'no-cache' ))
{
return false;
}