We we're using virtualPathMappings for overiding specific files including javascript from EPiServers Util-folder. For example ~/util/javascript/EPiServerScriptManager.js.
The problem is that the file is not cached in browser, the wrong headers are sent when using virtualPathMappings. We get status "200 OK" for the file all the time, we would like to have a "304 Not Modified". Because of this the file is downloaded several times when edit mode is loading.
Other static files is caching correctly. We have tried to change the response headers and managed to do that by rewriting the headers by using outbound rules in rewrite section. But it didn't work, the files are still not cached.
Hi
We we're using virtualPathMappings for overiding specific files including javascript from EPiServers Util-folder. For example ~/util/javascript/EPiServerScriptManager.js.
The problem is that the file is not cached in browser, the wrong headers are sent when using virtualPathMappings. We get status "200 OK" for the file all the time, we would like to have a "304 Not Modified". Because of this the file is downloaded several times when edit mode is loading.
Other static files is caching correctly. We have tried to change the response headers and managed to do that by rewriting the headers by using outbound rules in rewrite section. But it didn't work, the files are still not cached.
Do someone have a solution for this?
Thanks in advance
Ola