web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to fix caching iss...
Power Pages
Answered

How to fix caching issue in Power Pages Site?

(2) ShareShare
ReportReport
Posted on by 46
Hi Folks,
 
In my power pages site I'm retrieving data from dataverse using Power Pages Web API. Everything's working fine except when I update the data in dataverse outside the power pages (via a Model Driven app), the change is not getting affected immediately when I open the site. It takes around 1 to 5 min to get the update reflected. For example I want to navigate the user to different pages based on data, which does not happen as expected shortly after the data is updated. 
 
Any thoughts on how to fix this?
 
Thanks,
Robin
Categories:
  • Suggested answer
    Jon Unzueta Profile Picture
    1,836 Super User 2026 Season 1 on at
     
    When calling the Web API from JavaScript, ensure you're preventing browser and server caching:

    fetch("/_api/table_name(guid)", {

      method: "GET",

      headers: {

        "Cache-Control": "no-cache",

        "Accept": "application/json"

      }

    })

    This content may have been partially translated, structured, or generated with Copilot 🏷️ Tag me if you have any further questions or if the issue persists. ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems. ❤️ Give it a Like if you found the approach useful in any way.
  • rbn_neu Profile Picture
    46 on at
     
    Ya this is already in place but still it takes a few minutes before the database changes done outside power pages site is reflected on the power pages site.
     
     
  • Verified answer
    Fubar Profile Picture
    17 Super User 2026 Season 1 on at
    The caching you describe is by design by Microsoft (the SLA is actually 15 mins for updates from Dataverse to reflect on the portal, but usuall occurs within a few minutes).
     
    If you are using the Portals Web API, or where you may be using fetchxml in Liquid the workaround is to add a condition to your query that will make the query relatively unique but always return true (true so it doesn't impact the rest of your query) - as an example this can be done by adding a condition based on the Created On date where it is less than the date-time now (formatted down to seconds).
     
    e.g. a condition in Liquid
    <condition attribute="createdon" operator="on-or-before" value='{{ now | date: "yyyy-MM-dd HH:mm:ss" }}' />
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 110

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 24

Last 30 days Overall leaderboard