Perch collection cache issue with cookies
I'm passing a cookie value to filter a Perch Collection.
This works fine, like below:
perch_collection('Some Collection', [ 'filter' => 'name', 'match' => 'in', 'value' => $some_cookie_value, 'template' => 'some_template.html', ]);
The problem I'm facing is that I have to refresh the page for this to properly display the results. This is presumably because of some Perch page caching. Should I be facing this problem? I can see on the previous page that the cookie has been set, if I look in the Application tab of Chrome DevTools. If so, Can I do something to call a Perch Collection uncached?
FYI If I disable the browser cache then this works fine, but with the browser cache enabled I need to reload pages for the results to be displayed correctly.