Caching

moving this back and forth between index.html and xindex.html should still do the right thing