Virtual Path Provider disable caching?

后端 未结 5 2028
鱼传尺愫
鱼传尺愫 2020-12-31 18:18

I have a virtual path provider. Problem is its caching my files. Whenever I manually edit one of the aspx files it references the VPP doesn\'t pull in the new file, it conti

5条回答
  •  有刺的猬
    2020-12-31 19:16

    The solution that worked for me as desired was:

    • GetCacheDependency: return null;
    • GetFileHash: return Guid.NewGuid().ToString();

    However, with this solution results in hanging the server (Cassini, IIS 6, IIS 7, IIS 8). The hanging only lasts for a few minutes then the results are delivered.

    I've also included a test for virtual path/file with the same results. I messed with browser timeouts.

    Can anyone help?

提交回复
热议问题