Good day.
I have webs
My homepage content is into

 <div class="active">
         Homepage content
Class active is removed after some link (link1...link5) is clicked with jquery script

   $("#link-link1 , #link-link2 , #link-link3 , #link-link4 , #link-link5").click(function(){
It work but when i refresh page, it show my link content and homepage content (class active is visible). You can try it here (and see full code) . Probably i must use cache but i do not have idea how to realize it.