How create an Etag with an expire date?

My solution to the problem would be to add a timestamp to the end of the etag in the form of hash-timestamp . You could then parse that out when you needed it.

Up vote 0 down vote favorite share g+ share fb share tw.

I'm thinking about create an etag with an expire date. Actually I create an etag with a large number of parameters but I would like to make it with an expire date. I have the solution to keep an information in the server side but I prefere to encode any information into.

I'm searching the better way to do that. Def etag_max_age(hash_code, max_age=30): # do something... return etag_with_max_age def etag_max_age_expired(etag): # do some verifications return True or False EDIT I'm thinking about a solution with cookie python http etag expires link|improve this question edited Aug 4 '11 at 14:49 asked Aug 4 '11 at 14:21sahid1,486213 86% accept rate.

1 Could you not just tack the expire date onto the end of the hash. Something like - – Andrew Cox Aug 4 '11 at 15:30 O_o ...Of course yes... with a simple unix timestamp. What is the problem with me!

– sahid Aug 4 '11 at 15:40 I guess I will stick that in as the answer then :) – Andrew Cox Aug 4 '11 at 16:05.

My solution to the problem would be to add a timestamp to the end of the etag in the form of hash-timestamp. You could then parse that out when you needed it.

It's normal, thanks – sahid Aug 4 '11 at 16:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions