I installed this module on my project and it works just fine to detect the current browser using browscap_get_browser() which I am using to apply browser specific stylesheets. However, once that information is retrieved, it is saved in drupal cache and then if I visit the website in some other browser, it still has the stylsheets from the other broswer and I need to clear off drupal cache to get the correct stylesheets for current browser. Is there a way to handle this situation apart from setting to not cache pages in Performace. Any help in this matter will be helpful.

Thanks,
Sumit

Comments

greggles’s picture

Title: Browser Type cahcing issue » Document how browscap works with page caching
Component: Code » Documentation
Category: bug » task
Status: Active » Fixed

This is the inteded behavior of browscap. It's not a good match for the situation you describe.

I added a note to the project page to clarify that.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

1kenthomas’s picture

Issue summary: View changes

See https://www.drupal.org/node/2469603#comment-10513992

(is there any potential solution? this seems to me to severely limit use cases)