add cache control support
Update service.js

Format code
Update service.js

update format
fix config.cached,update document
Merge pull request #16 from lenzhang/master

add cache control support