java - How to force browser to expire cache of a specific page? -


i confused caching. know there different types of caching follows, question how have separate dynamic pages.

public - may cached in public shared caches (proxies , users) private - may cached in private cache (users only) no-cache - may not cached no-store - may cached not archived 

lets have specified 'public cache' , have following 2 addresses , need remove cache user 908. should pass meta new attribute of model? whats best approach?

www.example.com/users?id=100 www.example.com/users?id=908 

expire cache

if(user.cacheexpire){     model.addattribute("meta","<meta name="expires" content=" + user.cachedate + "> "; } model.addattribute("user",user); return "userpage"; 

does force user's browser remove cache user 908 id only? best approach?


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -