Prevent scripts from being cached programmatically

后端 未结 6 1301
面向向阳花
面向向阳花 2021-01-23 16:23

I would like to ask if there is a way to prevent Firefox from caching scripts (.js files).

I have a project (ASP.Net Web App) with caching issue on firefox. When I first

6条回答
  •  心在旅途
    2021-01-23 16:55

    If you have control over the IIS configuration then you can put all your scripts inside one folder and tell IIS to expire the content immediately, or add other custom headers of your choice.

    The appropriate page for IIS 6.0 is http://technet.microsoft.com/en-us/library/cc732442.aspx

提交回复
热议问题