Can I delete particular file from firefox cache?

前端 未结 4 1083
忘了有多久
忘了有多久 2021-01-18 08:13

I am developing an ASP.net application.

Where I have to frequently update my CSS file. I don\'t want to update document frequency setting in from about:config<

4条回答
  •  盖世英雄少女心
    2021-01-18 08:30

    Using an ETag would be a good option. By setting the Max-Age Header in HTTP responses, you can allow the client to cache the resource for a limited time. After that time, the client will make a conditional GET request to the server. If the ETag (stored in the If-None-Match header) in the request doesn't match the ETag on the server, the modified resource will be sent down to the client. Otherwise the server responds with HTTP 304 Not Modified and the client can cache the content for a limited time again. This approach can be used for particular files or for directories.

提交回复
热议问题