[http://creativecommons.org/licenses/by/3.0/]
This work is licensed under a CC
Attribution 3.0 Unported License [http://creativecommons.org/licenses/by/3.0/]
In order to speed up mobile applications, the optimization of network traffic often is one of the areas where significant improvements can be achieved. Since most network traffic uses HTTP, it is important to understand how HTTP caching works, and how servers can be configured to make caching work more effectively. However, since servers have no control over the clients and possible HTTP intermediaries, it is also important to understand the general architecture of HTTP caching, and how applications may or may not have good caching support on the platform they are built on.


cd ~/mobapps-logs
mobapps_access_log is the access log of the servermobapps_error_log is the error log of the servertail -f mobapps_access_log
tail -f mobapps_access_log | grep "/~dret"


neverchange (code and chrome)
improvecaching
packagedas an
application
NSURLRequest [http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/Reference/Reference.html] is the iPhone OS API for requesting URIsNSURLRequestCachePolicy [http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/Reference/Reference.html#//apple_ref/doc/uid/20001695-DontLinkElementID_1] allows to set the cache policy for a requestLoadModule expires_module modules/mod_expires.so
ExpiresActive On
# expire GIF images after a week in the client's cache ExpiresByType image/gif "now plus 1 week" # expire JPEG images after they are a week old ExpiresByType image/jpeg "modification plus 1 week" # expire PNG images after they are a month old ExpiresByType image/png "modification plus 1 month"
mod_expires [http://httpd.apache.org/docs/2.2/mod/mod_expires.html] supports a wide variety of settingsETag is a server-assigned identifier for a response entitysomething relevanthappens to the resource
inode-size-timestamp as the value of the ETagFileETag INode MTime Size
inode valuescorrectlyas possible
FileETag MTime Size