Hello,
I just started with ASP.NET MVC 4 and I’m an internship at a business who told me to create a basic webshop without a server and then validating the HTML and the speed of the website with YSlow.
I’ve been busy and when I finished the webshop, I started using YSlow to apply the speed to the website but there’s one thing it seems I cannot fix and that is misconfigured ETags:
“There are 5 components with misconfigured ETags” <- these are my CSS files and the pictures I have used.
I’ve been looking into what ETags are and still don’t exactly know what they do.
I know that in Apache you can turn them off by saying FileETag none, but in this case, I am not using a server and I would still like to turn them off, because they are not satisfied with a score of 99.
What I am looking for is an answer to what ETags exactly do and a fix to my problem.
Thanks
As per comments below that this is an exercise and obviously a PC is not going to be very performant. You could use a httpHandler. Here’s one I use for images that will help with your yslow (but note this is no guarantee of performance, and is meant for guidance to very busy sites)
and then specify the handler in your config (also do under httphandlers if not using iis7)