Hi, I'm trying to develop an extension that does redirections to add queryParams to specific URLs. I'm using two APIs:
The problem is that once I do a redirection for a host, the next redirection for the same host does not apply the new query params defined in the updated rule, but the defined in the older rule before removing and adding it dynamically.
I had tried thigs such as generating a timestamp for having always different values for the query params but it still caches the rule values somehow.
Also, I've tried clearing cache with different options as indicated on the API DNR documentation https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#implementation-cached-pages but it's not working.
Any idea why rules are not always upgraded properly?
Hi,
I have reviewed the example. But now it is not working in a specific case.
ShowCase:
1 - Open Google Chrome
2 - Access the url (configured in rules)
3 - From this page, right click on any link. Open the link in a new tab
4 - The rule is not applying because request is faster than callback of event "onCreated".
The url of the new tab is keeping the queryParam value of previous tab.
I don't understand. If I open a new tab and navigate to url. This action, open new tab, already is apply rule and when i do press "enter" apply the rule. Why if the same proccess but launch from link not working?
--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/a8973f65-36ad-4be2-b543-3813257072can%40chromium.org.