Skip to content

Commit

Permalink
Merge pull request #479 from ertush/hotfix
Browse files Browse the repository at this point in the history
Hotfix: Added no-cache headers in getServerSideProps of pages/facilit…
ertush authored Sep 11, 2024
2 parents 3403dc0 + c5820eb commit e2e4891
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/facilities/index.js
Original file line number Diff line number Diff line change
@@ -1003,10 +1003,10 @@ function FacilityHome (props){
export async function getServerSideProps(ctx) {


// ctx?.res?.setHeader(
// 'Cache-Control',
// 'public, s-maxage=10, stale-while-revalidate=59'
// )
ctx?.res?.setHeader(
'Cache-Control',
'no-cache'
)


// function fetchCurrentUser(token) {

0 comments on commit e2e4891

Please sign in to comment.