Hubspot Page stuck in cloudflare cache

Hi there,

we are actually evaluating possibilites for enriching an existing website page with dynamic content, preferable using HubL to render data from HubDB tables.

We have identified a strange issue during the execution of runtime tests using Postman. After a couple of requests, hubspot continues devlivering an outdated page. The very same also happens AFTER publishing used modules, and even if I remove the modules from the page or delete the page at all. The problem is reproduceable and persists for more than an hour.

In real life, no one is going to access the page via postman. But it might happen that a page is requested a couple of times in parallel. And this should not lead to a delivery of outdated pages…

When I change the page slug to something else, the “correct” content is delivered again. Until I restart again using postman…

Any ideas?

Thanks,

Dietmar

Hello @stupkad

For developers, HubSpot cache can be pretty stubborn which is why open source tools like the HubSpot Developer Extension were created. I believe you will be ok with others visiting your site, particularly if you are delivering dynamic content.

Adding @jonchim and @alyssamwilie to the conversation for their hot takes :wink:

Hey @stupkad,
I’ve always had issues with cache but like @dennisedson mentioned, the chance that a visitor comes to your site while they’re on a page that you’ve updated is probably very low chance of them seeing a cached version unless they sat there and clicked on refresh for an hour. They’ll most likely see the newly updated content.

If it’s for checking internally you can append ?somelineofrandomtext after the url to Example Domain like so to see the updated page. Most of the time it works but sometimes it bugs out. I know Dennis shared something with me recently regarding using variables to disable page cache maybe this may help HubL variables - HubSpot docs
Hubspot developer extension for the win!