We are using a worker to cache 2 different versions of the page (mobile/desktop) We are using an approach similar to: Caching by device using same URL with worker where we append a query parameter ua=desktop or ua=mobile to the cache key.
Caching works fine, and we get different versions of the page depending on the user agent. The problem however is that we get the query parameter ?ua=desktop appended to some links within the html like for example:
Why is the ?ua=desktop appended to links in the html? Is there a way to remove it?