: How do I modify the HTTP headers? Google page speed rank demands me to set an expiry date or a maximum age in the HTTP headers, by changing the "Expires" and "Cache-Control: max-age". The
Google page speed rank demands me to set an expiry date or a maximum age in the HTTP headers, by changing the "Expires" and "Cache-Control: max-age".
The site is hosted on a hosting company (not in my garage) on a windows platform.
I tried by uploading a .htaccess file but they have IISPassword program that blocks it.
The question is how do I modify the HTTP headers?
when checking the current header this is what I get:
HTTP/1.1 304 Not Modified
Content-Location: pcgroup.co.il/Default.htm Last-Modified: Wed, 14 Mar 2012 18:38:56 GMT
Accept-Ranges: bytes
Vary: Accept-Encoding
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Wed, 14 Mar 2012 19:16:43 GMT
More posts by @Vandalay111
2 Comments
Sorted by latest first Latest Oldest Best
Create a file called web.config.txt and then upload it to your server root. Then rename the file, removing .txt extension. You will then need to modify the file with the correct code.
A .htaccess file works only on the Apache webserver, you're using Microsoft's IIS Webserver.
See 'Add Expires or Cache Control Header to static content in IIS'
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.