I have used this website for testing http://www.webpagetest.org
and among some suggestions for optimization it suggests that i set cookies for my images & global css;
How do I set cookies with htaccess? I want to cookie the site logo and the global.css which is loaded in almost every page.
also I have read on the yahoo developers http://developer.yahoo.com/performance/rules.html, that it suggest that cookies should be limited to the bare minimum, in my case what would be the better performance enhancer?
There is a siginficant loading time for the css and the site logo, so I want to at the very least save those as cookies, but can I save the majority of my images/scripts as cookies as well?
Cookies should only be used to track the user of website on their various visits. What you’re looking for is caching, and caching is done through the browser and not with “.htaccess”. The only thing you can do is to stop the browser from caching static content from your page, for details on that look at this question. Maybe you have set a very low expiry on your content and it is fetched every time.