I have the exact same problem for cookie functionality I'm working on. I can't delete the cache so I can only use the second solution
- You create the cookie in a more lightweight call (e.g on an AJAX call), which then creates the cookie.
Is this on a front end level using javascript?