Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Client Cache Not Working for StaticContent
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Smart Lucky
10y
824
1
Reply
Hi dudes
I am i have an mvc application (with NHibernate) i want to enable client cache for static contents using web config but it is not working , blow code i have wrote , can any one help please
<location path="Content/css">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
</staticContent>
</system.webServer>
</location>
<location path="Scripts">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
</staticContent>
</system.webServer>
</location>
<location path="images">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
</staticContent>
</system.webServer>
</location>
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
returning mutiple models to a single view MVC
Which technology to be used for hybrid site development?