rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: SamePaul on August 15, 2007, 06:22:16 PM

Title: Content caching allowing
Post by: SamePaul on August 15, 2007, 06:22:16 PM
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?
Title: Re: Content caching allowing
Post by: rejetto on August 15, 2007, 09:24:53 PM
only listings are affected by the no-cache
and, to say it all, the bandwidth graph picture.
nothing else.
files are not.
Title: Re: Content caching allowing
Post by: ScorpAL on July 23, 2009, 03:03:58 PM
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?
Title: Re: Content caching allowing
Post by: TSG on July 28, 2009, 06:45:01 AM
<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.
Title: Re: Content caching allowing
Post by: ScorpAL on July 28, 2009, 08:33:01 AM
<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.
Title: Re: Content caching allowing
Post by: rejetto on August 17, 2009, 12:10:24 PM
use firefox
install "web developer" plugin
disable > disable cache