BloggingAbout.NET
Thoughts of developers
Sign in
|
Join
|
Help
Home
Blogs
Media
All Tags
»
http
»
mvc
»
200
(
RSS
)
Browse Blog Posts by Tags
Showing related tags and posts for the
Blogs
application. See
all tags in the site
304
etag
header
MVC *always* returns status code 200 when a max age is set while it can return with 304
Take a look at the following mvc csharp code: Response.AddFileDependency(filename) Response.Cache.SetETagFromFileDependencies(); Response.Cache.SetCacheability(HttpCacheability.Public); Response.Cache.SetMaxAge(TimeSpan.FromHours(1)); return File(filename, "video/mp4") My intension of this...
Posted to
Ramon Smits
by
Ramon Smits
on Thu, Jun 16 2011
Filed under:
Filed under:
http
,
etag
,
304
,
mvc
,
200
,
header
Page 1 of 1 (1 items)
Copyright © 2003-2010 BloggingAbout.NET