1

I've deployed my next js app as static into my cpanel traditional hosting. So some pages consume local json file that I fetch using getStaticProps, even using "revalidate" option. When I edit the json file, the page does not update without clearing the website cache manually from google chrome. I've edited the .htaccess to not cache js,html,htm files and still same.

Hashem Mashem
  • 317
  • 1
  • 5
  • 11

1 Answers1

1

At your fetch add a Cache Buster.

Checkout this answer:

Cache busting via params

Ruben Marcus
  • 338
  • 1
  • 9