PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Ever since I started to parse .css as php in order to use gzip to compress my css files, Yahoo has started to index my css files as well.
In order to prevent this I have researched but cannot distinguish the difference between the following http lines as their definitions are too slight to be able to distinguish between them. What cache-control can I use inside my css files to prevent indexing? Which ones of the below may I leave out / are not needed?
I want the css files to be crawled but not indexed. If I use robots.txt, yahoo won't access those files but that could penalize me in ranking since I could be using weird SEO techniques.
Not exactly... robots.txt files are designed to stop bots from crawling areas of your site you don't want them to have access. Why would you want google/yahoo/et al. to crawl your css files but not index them... seems pointless to me.
If you actually read that link that volka posted, yahoo themselves recommend using a robots.txt file.