Merge pull request #8264 from appwrite/fix-cache-client-expires-header

Update Expires header via cache shared api
This commit is contained in:
Christy Jacob 2024-06-25 21:02:13 +04:00 committed by GitHub
commit 1a860e846f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -462,7 +462,12 @@ App::init()
->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)
->addHeader('X-Appwrite-Cache', 'miss')
;
}
}
});