Before posing this question, I searched the forum to check if anyone had asked it before. I found a post, but it never received a response. Therefore, I’m reposting it in the hope that someone will answer this time.
Original post
I’ve noticed an issue with the browser class function in the GFCommon class getting cached and served up with the wrong browser class set. With most caching plugins the cache is generated after this function runs, so the browser checking done in PHP will not run on every visit, this means that someone viewing in firefox could end up seeing a gravityform with a gf_browser_safari
safari class on the wrapper. That isn’t a huge deal for most modern browsers, but if you get a cached version of the page where it has gf_browser_ie9
on the form wrapper div, and you are not using IE9 it will significantly change the display of the form (or vice-versa).
I would think this browser detection should be done on the client site so it isn’t cached at the server level. Is there a known fix for this?