• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting header for cache

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Setting header for cache:
*************************
1: setHeader("Cache_Control","no-cache")
----------------------------------------
If I have set the header to response.setHeader("Cache_Control","no-cache") for Page1.htm
What does it mean ? When using explorer ,should this prevent the page from being placed in history ?
If the user after page1.htm goes to page2.htm should not the page1.htm be unavailable ?
2: Can a header be set to more then one value ?
-----------------------------------------------
Is this header valid ?
response.setHeader("Cache_Control","max-age=3600, must-revalidate");
3: cached for 10 minutes and then expiry
----------------------------------------
If I want a page to be cached for 10 minutes and then expiry, what's the correct way of doing that
in http 1.1 ? What should the headers look like ?

thanks in advance
Per
reply
    Bookmark Topic Watch Topic
  • New Topic