Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conditional GET with Etag: Strategy for Etag value

 
H Paul
Ranch Hand
Posts: 471
4
  • 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?
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!