javascript - Angular: How to cache images? - Stack Overflow

I am developing a web app where I need to cache images so that it does not take time to load if user cl

I am developing a web app where I need to cache images so that it does not take time to load if user closes and opens website again. By opening website again, images should be loaded from cache instead of reloading again.

Is this possible to implement with Angular?

I searched a lot online but I did not find proper solution for that yet.

I am developing a web app where I need to cache images so that it does not take time to load if user closes and opens website again. By opening website again, images should be loaded from cache instead of reloading again.

Is this possible to implement with Angular?

I searched a lot online but I did not find proper solution for that yet.

Share Improve this question edited Jun 10, 2017 at 3:31 developer033 24.9k8 gold badges84 silver badges113 bronze badges asked Jun 10, 2017 at 3:29 user2899728user2899728 2,3194 gold badges18 silver badges28 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

You can use - HTML manifest Attribute

The manifest attribute specifies the location of the document's cache manifest.

HTML5 introduces application cache, which means that a web application is cached, and accessible without an internet connection.

Application cache gives an application three advantages:

  • Offline browsing - users can use the application when they're offline Speed - cached resources load faster
  • Reduced server load - the browser will only download updated/changed resources from the server
  • The manifest attribute should be included on every page of your web application that you want cached.

The manifest file is a simple text file that lists the resources the browser should cache for offline access.

Detail understanding read this blog: https://www.html5rocks./en/tutorials/appcache/beginner/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744902615a4600064.html

相关推荐

  • javascript - Angular: How to cache images? - Stack Overflow

    I am developing a web app where I need to cache images so that it does not take time to load if user cl

    1天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信