Update Expires header via cache shared api

This commit is contained in:
shimon
2024-06-12 18:42:04 +03:00
parent f91a8a9135
commit d2a2caedbd
+4 -1
View File
@@ -457,13 +457,16 @@ App::init()
}
$response
->addHeader('Expires', \date('D, d M Y H:i:s', \time() + $timestamp) . ' GMT')
->addHeader('X-Appwrite-Cache', 'hit')
->setContentType($cacheLog->getAttribute('mimeType'))
->send($data);
} else {
$response->addHeader('X-Appwrite-Cache', 'miss');
}
$response
->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate')
->addHeader('Pragma', 'no-cache')
->addHeader('Expires', 0);
}
});