update resource to work with if-match/if-none-match and etag header
start working with JUnit test with cachecontrol