rejetto forum

Content caching allowing

0 Members and 1 Guest are viewing this topic.

Offline SamePaul

  • Occasional poster
  • *
    • Posts: 72
    • View Profile
By default HFS specifies in HTTP-headers that content is not cacheable (Cache-Control: no-cache). Whereas I agree on that in general, but for some folders I would *encourage* caching. Is there any way to mark some folder contents to be cached? Not listing, but files themselves?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
only listings are affected by the no-cache
and, to say it all, the bandwidth graph picture.
nothing else.
files are not.


Offline ScorpAL

  • Occasional poster
  • *
    • Posts: 10
    • View Profile
Hi.
How to temporary disable cache headers?
I need it just for testing my template.

How to set max-age for files with some extension?


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"/>

Put this in the <head/> of your template. Or easier, just use ctrl+f5 to refresh ignoring cache in most browsers.


Offline ScorpAL

  • Occasional poster
  • *
    • Posts: 10
    • View Profile
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"/>

Put this in the <head/> of your template. Or easier, just use ctrl+f5 to refresh ignoring cache in most browsers.

It's just for HTML, but not for images loaded with JS.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
use firefox
install "web developer" plugin
disable > disable cache