Caching Http Requests #110
Unanswered
vincentmuthomi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Caching does not seem to work
My setup
page.routeorcontext.route. Saw that there was an issue with this in caching, but I do not implement it.The Issue
When using an ordinary browser, I get
200 OK (from memory cache)and thex-cache: RefreshHit from cloudfrontOn the patchright controlled environment, I get
200 OKbut thex-cacheheader is non -existent in most staticly served files.The result, the page takes forever to reload
Diagnosis
Tried to run the proxy server across a normal browser without playwright and the result was as expected, caching was working fine hence ruling out the effects of the proxy server
Tried to change a couple of default injected args when running chrome, nothing worked
Below is the setup code I used, also to add, I was testing the ignore-default-args one by one. The script below showcases all the arguments I tested.
My thought process
Something in either playwright or patchright may be causing the problem. Any assistance will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions