• Post Reply Bookmark Topic Watch Topic
  • New Topic

Conditional GET with Etag: Strategy for Etag value  RSS feed

 
H Paul
Ranch Hand
Posts: 491
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
New to this Etag.

This is a java and web related question. I posted because it's my context is web.
But the basic foundation is still java as well.

Google and found an example:
Client:
1. Get a user info:

Server:
2. EntityTag tag = new EntityTag(Integer.toString(user.hashCode()));
return user info with Etag calculated from object's hashCode.

As an illustration, this is fine. Within the context of illustration. Is there any other possibility?

But in real world, what are the strategy for Etag value?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!