You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tom Browder <to...@gmail.com> on 2016/11/15 18:29:33 UTC

[users@httpd] Use of mod_expires and mod_cache: how does one control cache time for specific file extensions?

I want to have *.shtml files parsed more frequently than other files.
Using "mod_expire" seems easy enough but it uses file mime types and
but I can't find any mime type for "text/shtml" only.

So I guess my only option is to use "mod_cache" which is not very
straight-forward to use, but it, too, doesn't seem to be able to use
files by extension.

Is there any way to satisfy my need?

Thanks.

Best regards,

-Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Use of mod_expires and mod_cache: how does one control cache time for specific file extensions?

Posted by Tom Browder <to...@gmail.com>.
On Tue, Nov 15, 2016 at 3:19 PM, Tom Browder <to...@gmail.com> wrote:
> On Tuesday, November 15, 2016, Eric Covener <co...@gmail.com> wrote:
>> On Tue, Nov 15, 2016 at 1:29 PM, Tom Browder <to...@gmail.com>
>> wrote:
> Thanks, Eric. I think I have the solution for my needs after I read about
> SSI  some more. I have been using the xbit hack forever, but I think there
> is a solution specifically for my problem. I'll post my solution if it
> works.

Okay, I think my cache concern is a non-issue.  Reading more about SSI
I think it is not cached.

Thanks for your help (and see next question in another thread).

Best,

-Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Use of mod_expires and mod_cache: how does one control cache time for specific file extensions?

Posted by Tom Browder <to...@gmail.com>.
On Tuesday, November 15, 2016, Eric Covener <co...@gmail.com> wrote:

> On Tue, Nov 15, 2016 at 1:29 PM, Tom Browder <tom.browder@gmail.com
> <javascript:;>> wrote:


Thanks, Eric. I think I have the solution for my needs after I read about
SSI  some more. I have been using the xbit hack forever, but I think there
is a solution specifically for my problem. I'll post my solution if it
works.

Best regards,

-Tom

Re: [users@httpd] Use of mod_expires and mod_cache: how does one control cache time for specific file extensions?

Posted by Eric Covener <co...@gmail.com>.
On Tue, Nov 15, 2016 at 1:29 PM, Tom Browder <to...@gmail.com> wrote:
> I want to have *.shtml files parsed more frequently than other files.
> Using "mod_expire" seems easy enough but it uses file mime types and
> but I can't find any mime type for "text/shtml" only.

ExpiresDefault in Files/FilesMatch section?

> So I guess my only option is to use "mod_cache" which is not very
> straight-forward to use, but it, too, doesn't seem to be able to use
> files by extension.

I'm not sure if there are any mod_cache specific limitations, but
CacheEnable should work in Files/FilesMatch or at least
Location/LocationMatch.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org