Mobile app version of vmapp.org
Login or Join
Vandalay111

: 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

@Vandalay111

Posted in: #HttpHeaders #HttpServer #PageSpeed #Webserver

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

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

2 Comments

Sorted by latest first Latest Oldest Best

 

@Dunderdale272

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.

10% popularity Vote Up Vote Down


 

@Caterina187

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'

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme