This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what is caching ?  RSS feed

 
Karu Raj
Ranch Hand
Posts: 481
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is caching ? explain me

i found the code as something like this

response.head(cache, )
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
General definitions of cache and caching can be found at the follwing sites:
  • http://en.wikipedia.org/wiki/Cache
  • http://searchstorage.techtarget.com/sDefinition/0,290660,sid5_gci211728,00.html
  • http://www.pcwebopaedia.com/TERM/c/cache.html

  • [ October 17, 2005: Message edited by: Mark Vedder ]
     
    k matt
    Greenhorn
    Posts: 22
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi ,
    There are couple of ways you can set cache properties in the reponse. The advantage of this is if you view the source of that response page, it will be empty. You wont be able to view the source code. But there are couple of ways to you can override this no-cache directive in html. If you need more details let me know

    k matt
    [ October 19, 2005: Message edited by: k matt ]
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Posts: 65826
    134
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    The advantage of this is if you view the source of that response page, it will be empty. You wont be able to view the source code.


    Umm, well, that's not correct. If you are referring to the body content of the response, that's available regarldess of the state of caching.
     
    k matt
    Greenhorn
    Posts: 22
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi,
    Sorry for overlooking the question. I took it as setting cache-controll in response header.


    k matt
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Posts: 65826
    134
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    It is. And my point was that setting cache control in the response header(s) has no effect on the visibility of the body content.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!