Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's no standard way for one page to invalidate another. I've seen some private patches to do it in squid, but that doesn't help because you want to do it for browsers.

Your options are probably:

a) redirect to a different URL as you've done by appending stuff to it

b) require revalidation on each request, recipies shown by other posters

c) POST to the url you want refreshed; post isn't cachable. Note that you can't redirect to POST somewhere else, but you can do it with javascript.

d) use XHR to force a request as another poster mentioned.



E) use webworkers

Not saying its the right option, but it is an option.


for (c), HTTP 307 doesn't work?


Apparently, yes. My webfoo is a bit dated.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: