• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Feature request: add user agent info to cached stylesheet
PostPosted: Thu Oct 06, 2011 10:41 am 
Offline
Forum Members
Forum Members

Joined: Thu Jun 19, 2008 5:24 pm
Posts: 44
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)


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Feature request: add user agent info to cached styleshee
PostPosted: Thu Oct 06, 2011 2:50 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8164
Location: Fernie British Columbia, Canada
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting