Same response with different headers from api

28 Views Asked by At

I am working on some exchange platform called Backpack. I stuck on some mystery problem with same response, when the headers are completely different.

I have come to the conclusion that server just caches request and returns it with same data.

Things I've tried: different proxies for requests, headers are different as much as it possible, waiting after first request 10 seconds, aiohttp, requests, connection with Session and cleaning cache after first response and without session.

Headers I've tried:

'Cache-Control': 'no-cache',
'Pragma': 'no-cache',
'Expires': '0',
'User-Agent': (random useragent for both requests),
"Connection": "close",

The only thing that make API return not same response is changing body params, but for me it's not an option.

How can I avoid caching?

1

There are 1 best solutions below

1
sndmndss On

Problem is solved by using proxies on another domain.