mirror of
https://github.com/svga/SVGAPlayer-iOS.git
synced 2025-10-21 07:29:14 +08:00
Update readme.md
This commit is contained in:
14
readme.md
14
readme.md
@@ -60,6 +60,20 @@ SVGAPlayer *player = [[SVGAPlayer alloc] initWithFrame:CGRectMake(0, 0, 200, 200
|
||||
3. Input imageName on IB Properties Area.
|
||||
4. Animation will start after loaded.
|
||||
|
||||
## Cache
|
||||
|
||||
SVGAParser use NSURLSession request remote data via network. You may use following ways to control cache.
|
||||
|
||||
### Response Header
|
||||
|
||||
Server response SVGA files in Body, and response header either. response header has cache-control / etag / expired keys, all these keys telling NSURLSession how to handle cache.
|
||||
|
||||
### Request NSData By Yourself
|
||||
|
||||
If you couldn't fix Server Response Header, You should build NSURLRequest with CachePolicy by yourself, and fetch NSData.
|
||||
|
||||
Deliver NSData to SVGAParser, as usual.
|
||||
|
||||
## API
|
||||
|
||||
### Properties
|
||||
|
Reference in New Issue
Block a user