Feature request: add user agent info to cached stylesheet

The members of the Dev team will place issues here that they consider to be solved.

Feature request: add user agent info to cached stylesheet

Post by hoshy »

If you use smarty in your stylesheets the stylesheet is processed only one time and cached. next request will return the processed cached styelsheet. so far so good. but if you use plugins where the result depends on the user agent (e.g. to use only styles for specific browsers) you will get always the same cached stylesheet.

One more detailed example: I use base64 encoded images in my stylesheets. I use a small plugin that only returns base64 data if the browser supports it or - if IE8 - the base64 data is smaller than 32 kb.
When i first visit that page with firefox the stylesheet is cached with base64 data. But when i visit the page the second time with IE8 or IE7 i will get the same stylesheet. IE7 will not display any images and IE 8 only if the base64 data is smaller than 32kb. If not, it will cut the image after 32kb.
So it would be nice if the stylesheet can be cached for each useragent separately. (as i can see you just need to add the $_SERVER['HTTP_USER_AGENT'] to the cached css filename)
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Feature request: add user agent info to cached styleshee

Post by calguy1000 »

Feature requests will not be entertained during a beta process. Please file your feature request in the proper location in the forge for future consideration.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.

Return to “Closed Issues”