Cache headers for static content added

main
Inga 🏳‍🌈 15 years ago
parent 0037134c32
commit b4aefad99d
  1. 2
      Builder/IISMainHandler/build.txt
  2. 3
      IISMainHandler/handlers/StaticHandler.cs

@ -46,6 +46,9 @@ namespace FLocal.IISHandler.handlers {
throw new HttpException(403, "wrong file type"); throw new HttpException(403, "wrong file type");
} }
context.httpresponse.CacheControl = HttpCacheability.Public.ToString();
context.httpresponse.Expires = 1440;
context.httpresponse.WriteFile(fileinfo.FullName); context.httpresponse.WriteFile(fileinfo.FullName);
} }

Loading…
Cancel
Save