Re: [users@httpd] Most simple way to cache some static files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 16, 2005 at 11:43:20AM -0500, Jon Block wrote:
  
> What's the easiest way to cache all of the javascript files in the following
> example URL's??
>  
> http://www.example.com/javascriptcache/folder1/a.js
> http://www.example.com/javascriptcache/folder2/a.js
> http://www.example.com/javascriptcache/folder3/a.js
>  
> Disk based caching would be fine.

You don't mention which version of Apache you're running; Apache 1.3 has
'mod_mmap_static' and Apache 2 has 'mod_cache' (and various submodules).
I can't vouch for the stability of those modules, however (someone else
may be able to do so). Two other potential solutions:

1) If you're running Linux, you can place TUX in front of your Apache 
instance (this requires patching your kernel and re-compiling it,
however).

2) Place a second Apache instance in front of the main server running in
reverse proxy mode (or run Squid in the same way) and set the Cache
parameters accordingly.

--n


-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux