Good idea @_Manoj_Kumar_ and storing the info server side could work if the popup is being shown after an authentication point.
If the popup is NOT behind an authentication step, I would use the local storage approach and not worry about the cache and cookie clearing scenario. By clearing their cache and cookies, they are saying that they want their browser to forget any previous history so showing the popup again after clearing cache and cookies is expected behavior.