When a page is requested there would be parameters as below:
Pragma
Cache-Control
Content-Type
Date
Content-length
Is there a way to remove Date for example? Or remove most of them (except Pargam and some caching mechanisms) for image files? Could we get performance gain here? Should we do it on web server layer?
The
Dateheader is required by HTTP/1.1.Content-TypeandContent-lengthare also valuable and small to have, and you already mentioned that cache headers were important to you. So, I think you are looking in the wrong place for optimization.What you can do is make sure that images served from a domain separate from the application to make sure the clients aren’t sending cookie headers when they request static images. Using a CDN for serving static content is also recommended.