Posted on: 10/29/2014 6:26:17 PM | Views : 456

Dear All,
I have a usercontrol  that has the following  caching tag
<%@ OutputCache Duration="30" VaryByControl="txtSearch" VaryByParam="*" VaryByCustom="browser" %>

I have different styling and CSS for mobile and for the Web. But the issue is that sometimes the web styling appears on mobile and also mobile styling appears on web. Is there any solution to this.I tried to put VaryByHeader=”User-Agent” in usercontrol but it throws any error and its that The 'varybyheader' attribute is not supported by the 'outputcache' directive in a user control.
Any help would be greatly appreciated

Go to the complete details ...