Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query GraphQL backend with HTTP GET #478

Closed
paales opened this issue May 27, 2020 · 3 comments
Closed

Query GraphQL backend with HTTP GET #478

paales opened this issue May 27, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@paales
Copy link

paales commented May 27, 2020

We're trying to query Magento's GraphQL endpoint with a GET request: https://develop.pwa-venia.com/graphql

Magento uses it's own caching mechanism via Varnish: https://devdocs.magento.com/guides/v2.3/graphql/caching.html

Magento can cache pages rendered from the results of certain GraphQL queries with full-page caching. Full-page caching improves response time and reduces the load on the server. Without caching, each page might need to run blocks of code and retrieve large amounts of information from the database. Only queries submitted with an HTTP GET operation can be cached. POST queries cannot be cached.

@ardatan ardatan added the enhancement New feature or request label May 27, 2020
@ardatan
Copy link
Owner

ardatan commented May 27, 2020

Could you try useGETForQueries option with the canary version of this PR ?
#480

@paales
Copy link
Author

paales commented May 29, 2020

Thanks a lot! Will check it out soon!

@ardatan
Copy link
Owner

ardatan commented May 30, 2020

Available in 0.1.19!

@ardatan ardatan closed this as completed May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants