Skip to content

Commit

Permalink
Hotfix: Added no-cache headers in getServerSideProps of pages/facilit…
Browse files Browse the repository at this point in the history
…ies/index.js
  • Loading branch information
ertush committed Sep 11, 2024
1 parent 71bb79d commit c5820eb
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
Expand Up @@ -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) {
Expand Down

0 comments on commit c5820eb

Please sign in to comment.