Bugfix and listen state change
Limit on cache size
Add extra meta when update head