-1

I want to know if there is a way to cache or store images which changes frequently in websites? For example; in your website, a user uploaded 10 images and select a cover image.But the user (or users) can delete their images or change their cover images etc. at any time.

I know I can cache databse queries if I fetch image names from database, but loading these images sometimes takes much time. There is nothing to do with browser caching, I think.

Is there any way to reduce the loading of site with images?

4

1 回答 1

1

浏览器缓存图像我的名字。如果客户端打开文件abc.jpg,下次此图像将来自缓存(如果启用了缓存)。因此,如果您在服务器上上传文件,请为其设置正确的名称。或者您几乎可以禁用缓存abc.jpg?1

于 2013-09-13T19:28:43.353 回答