Caching and virtualPathMappings

Vote:
 

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

 

#79053
Dec 09, 2013 8:45
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.