I am working on a website which changes its favicon depending on the user details logged in. A controller processes this request at the back-end and sends the appropriate favicon for the site. So far, I avoided the favicon getting cached by most browsers through this:
<link rel="shortcut icon" type="image/x-icon" href="resources/favicon.ico?v=${date.time}"/>
However, the favicon still gets cached in ie11. No requests were received by the controller when I turned on debug on Netbeans.
Things to note:
- The first favicon upon entering the site works. I just can't replace it after logging in.
- I typed the favicon url in the address bar and it returned the correct favicon.
I've been looking around but I can't find a solution to this problem. :<