问题描述:

I am developing a HTML web app and deployed in IIS. I am using app cache to cache some files as service workers doesn't support Edge browser. Until it supports service workers, i am going with Application cache. I was able to implement the code and it's working except in Firefox browser. The issue that i face in Firefox is that when i change the manifest file, the manifest file is updated but not the files(except for newly added files). After sometime, let say 15 mins, when i visit my site, the files are getting updated. In order to fix that issue, in IIS, i have given the no-cache option to the folder that has the files to be cached. When it's implemented, the issue in Firefox gets solved but another issue arises, let's say I have images that are not in manifest files, every time i access html file that has the images, those images are not getting cached at all in Firefox.

Previously the images are getting cached before fixing the issue. Even if I give the expires field to 1 year still it's not working. All the files that I have mentioned in the manifest file is inside a folder and in IIS I have given a custom response header as Expires and Cache-control as private to that folder only. As expected when I look in fiddler those files are having those custom headers and the next time manifest files is updated those are updated immediately. When i see the images in the fiddler it doesn't have those custom headers but those images are not cached in Firefox at all. I am not sure if what i am doing is correct? Can someone provide me solution for the first problem or for the second problem?

Thanks.

相关阅读:
Top