Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conditional GET with Etag: Strategy for Etag value  RSS feed

H Paul
Ranch Hand
Posts: 491
  • 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:
1. Get a user info:

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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!