René's URL Explorer Experiment


Title: Hashnode GraphQL returns stale posts due to Edge caching (latest published posts not visible immediately) · Issue #86 · Hashnode/support · GitHub

Open Graph Title: Hashnode GraphQL returns stale posts due to Edge caching (latest published posts not visible immediately) · Issue #86 · Hashnode/support

X Title: Hashnode GraphQL returns stale posts due to Edge caching (latest published posts not visible immediately) · Issue #86 · Hashnode/support

Description: Summary We are fetching posts from Hashnode GraphQL API (https://gql.hashnode.com/) for our website blog page. Even after publishing a new post, the API sometimes returns stale data (old totalDocuments and missing latest post). This look...

Open Graph Description: Summary We are fetching posts from Hashnode GraphQL API (https://gql.hashnode.com/) for our website blog page. Even after publishing a new post, the API sometimes returns stale data (old totalDocum...

X Description: Summary We are fetching posts from Hashnode GraphQL API (https://gql.hashnode.com/) for our website blog page. Even after publishing a new post, the API sometimes returns stale data (old totalDocum...

Opengraph URL: https://github.com/Hashnode/support/issues/86

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hashnode GraphQL returns stale posts due to Edge caching (latest published posts not visible immediately)","articleBody":"**Summary**\n\nWe are fetching posts from Hashnode GraphQL API (https://gql.hashnode.com/) for our website blog page.\nEven after publishing a new post, the API sometimes returns stale data (old totalDocuments and missing latest post).\nThis looks like an Edge cache issue, where the response is served from cache even though the publication has new content.\n\n**What we expect**\n\nWhen a new blog post is published on our Hashnode publication, the query should return the latest post immediately (or within a predictable short time).\n\nWhat actually happens\n\t•\tAfter publishing a new post, our website still shows old posts\n\t•\ttotalDocuments stays the same (example: sometimes 46 instead of 47)\n\t•\tThe newest post doesn’t appear in posts.edges even when requesting the first page\n\t•\tSometimes after multiple requests or after some time, it starts showing the latest data\n\nSo the response is inconsistent even for the same query + variables.\n\nquery \n```graphql\nquery Publication($after: String, $first: Int!) {\n  publication(host: \"prathamd01.hashnode.dev\") {\n    posts(first: $first, after: $after) {\n      totalDocuments\n      pageInfo {\n        hasNextPage\n        endCursor\n      }\n      edges {\n        node {\n          id\n          slug\n          title\n          publishedAt\n          url\n        }\n      }\n    }\n  }\n}\n```\n\n**Why we think this is Edge caching**\n\nHashnode docs mention that responses are cached at the Edge:\n\n“Almost all responses of queries are cached on the Edge.”\n“Cached data will automatically be purged if you mutate the data.”\n“If you don’t request the field id… it is possible that you get stale data.”\n\nWe are already requesting id fields, but still getting stale results.\n\n**What we tried**\n\n-  Setting cache: \"no-store\" / cache: \"no-cache\" in fetch\n\n- Setting response headers in our Next.js API route:\n\n```graphql\nres.setHeader(\"Cache-Control\", \"no-store, max-age=0, must-revalidate\");\nres.setHeader(\"Pragma\", \"no-cache\");\n```\n\n- Still stale data sometimes.\n\n-  Fetching more posts (first: 20) and sorting by publishedAt client-side\n\n- This works more often but feels like a workaround, not a real fix.\n\n✅ Polling every 15 seconds\n\n- Works but increases request count and is not ideal for production.\n\n\n**Key problem**\n\nEven if we bypass caching on our side, Hashnode still sometimes returns cached/stale data from the Edge, so the newest published post is not visible immediately.\n\n\n**Request / Question**\n\nIs there a way to ensure fresh posts data always comes from Hashnode GraphQL?\n\nFor example:\n\t•\tan option to disable edge caching for specific queries\n\t•\ta recommended approach for “latest posts” use-case\n\t•\ta way to force cache purge on publish/update\n\t•\tor a documented cache TTL / propagation time","author":{"url":"https://github.com/prathamd123","@type":"Person","name":"prathamd123"},"datePublished":"2026-01-16T05:04:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/86/support/issues/86"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2ac67e5c-60ad-016e-5173-14218486ef0e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEAB2:14965D:590D454:7934E1D:697328B7
html-safe-nonce01ead483a93fde1ec19d549719748000437db7727c3aa1ff37a27d33c6ae8c1c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUIyOjE0OTY1RDo1OTBENDU0Ojc5MzRFMUQ6Njk3MzI4QjciLCJ2aXNpdG9yX2lkIjoiNjU2MzQ0NzQ5NzQxNjcxNDQyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4f4a54899410df003c5491528c82e36f8b7ab654dff1d8262330d4d1c46b4e58
hovercard-subject-tagissue:3820365231
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Hashnode/support/86/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f10b9491354bc8a277ebed4e85f64973fae2a74c860850331b75613cca734e75/Hashnode/support/issues/86
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f10b9491354bc8a277ebed4e85f64973fae2a74c860850331b75613cca734e75/Hashnode/support/issues/86
og:image:altSummary We are fetching posts from Hashnode GraphQL API (https://gql.hashnode.com/) for our website blog page. Even after publishing a new post, the API sometimes returns stale data (old totalDocum...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameprathamd123
hostnamegithub.com
expected-hostnamegithub.com
None44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4
turbo-cache-controlno-preview
go-importgithub.com/Hashnode/support git https://github.com/Hashnode/support.git
octolytics-dimension-user_id16342708
octolytics-dimension-user_loginHashnode
octolytics-dimension-repository_id330598092
octolytics-dimension-repository_nwoHashnode/support
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id330598092
octolytics-dimension-repository_network_root_nwoHashnode/support
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea5e2b48bd1260476599758f5d253b5d24092ab84
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/Hashnode/support/issues/86#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FHashnode%2Fsupport%2Fissues%2F86
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FHashnode%2Fsupport%2Fissues%2F86
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Hashnode%2Fsupport
Reloadhttps://patch-diff.githubusercontent.com/Hashnode/support/issues/86
Reloadhttps://patch-diff.githubusercontent.com/Hashnode/support/issues/86
Reloadhttps://patch-diff.githubusercontent.com/Hashnode/support/issues/86
Hashnode https://patch-diff.githubusercontent.com/Hashnode
supporthttps://patch-diff.githubusercontent.com/Hashnode/support
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FHashnode%2Fsupport
Fork 49 https://patch-diff.githubusercontent.com/login?return_to=%2FHashnode%2Fsupport
Star 49 https://patch-diff.githubusercontent.com/login?return_to=%2FHashnode%2Fsupport
Code https://patch-diff.githubusercontent.com/Hashnode/support
Issues 23 https://patch-diff.githubusercontent.com/Hashnode/support/issues
Pull requests 5 https://patch-diff.githubusercontent.com/Hashnode/support/pulls
Actions https://patch-diff.githubusercontent.com/Hashnode/support/actions
Projects 0 https://patch-diff.githubusercontent.com/Hashnode/support/projects
Security 0 https://patch-diff.githubusercontent.com/Hashnode/support/security
Insights https://patch-diff.githubusercontent.com/Hashnode/support/pulse
Code https://patch-diff.githubusercontent.com/Hashnode/support
Issues https://patch-diff.githubusercontent.com/Hashnode/support/issues
Pull requests https://patch-diff.githubusercontent.com/Hashnode/support/pulls
Actions https://patch-diff.githubusercontent.com/Hashnode/support/actions
Projects https://patch-diff.githubusercontent.com/Hashnode/support/projects
Security https://patch-diff.githubusercontent.com/Hashnode/support/security
Insights https://patch-diff.githubusercontent.com/Hashnode/support/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/Hashnode/support/issues/86
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/Hashnode/support/issues/86
Hashnode GraphQL returns stale posts due to Edge caching (latest published posts not visible immediately)https://patch-diff.githubusercontent.com/Hashnode/support/issues/86#top
https://github.com/prathamd123
https://github.com/prathamd123
prathamd123https://github.com/prathamd123
on Jan 16, 2026https://github.com/Hashnode/support/issues/86#issue-3820365231
https://gql.hashnode.com/https://gql.hashnode.com/
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.