Advertisement
thebossnt

asp.net core web.config

Sep 7th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3.   <system.webServer>
  4.     <handlers>
  5.       <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
  6.     </handlers>
  7.     <aspNetCore processPath="dotnet" arguments=".\Website.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
  8.   </system.webServer>
  9.   <location path="assets" inheritInChildApplications="true" >
  10.     <system.webServer>
  11.       <httpProtocol>
  12.         <customHeaders>
  13.           <remove name="Cache-Control" />
  14.           <add name="Cache-Control" value="public, max-age=1296000,max-age=31536000"  />
  15.           <!-- the respond: no-store, must-revalidate, no-cache, public, max-age=1296000,max-age=31536000 -->
  16.         </customHeaders>
  17.       </httpProtocol>
  18.     </system.webServer>
  19.   </location>
  20. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement