volume_up
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Try this in your web.config:
<location path="PageFiles">
<system.webServer>
<handlers>
<add name="webresources" path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader"/>
<add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer"/>
</handlers>
</system.webServer>
<staticFile expirationTime="20.0:0:0"/>
</location>
This does not work, complaints about the <staticFile>. Should it be <system.webServer><staticContent>? Although I couldn't get that to work either directly with VPP folders :-( So I would also be more than happy to hear about correct way to set client expiration time for vpp served files.
Ah I was just missing the section declaration from configsections:
<section name="staticFile" type="EPiServer.Framework.Configuration.StaticFileSection, EPiServer.Framework" allowLocation="true" />
With this and the config from Christian I gont headers working!
Yes I got it working too combining Jannes and Christians code. Thank you!
Hello!
What would be the proper way to set for example client cache timeout on VPP folders?
As an example I've tried to do a location setting for "Global" in web.config but it doesn't seem to go through. I'm stuck on a 10h timeout whatever I do but on any other static folder it works fine...