httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bvr@xs4all.nl" <...@xs4all.nl>
Subject Re: [users@httpd] Most simple way to cache some static files?
Date Fri, 18 Mar 2005 21:35:54 GMT


Haven't tried this but you could try adding a reverse-proxy in a 
separate virtual host, for example using ProxyPass.

Or you could add an extra virtual host that serves the same files from a 
different location and setup some sort of load-balancing so you can 
switch easily and update the copies one by one.

The latter would be more complicated but doesn't give the overhead of 
the proxy subrequest, you may want to look into automating the process 
for updating the files though.

bvr.


Jon Block wrote:
> I have a server that is getting a TON of traffic for some small static
> javascript files. I want to cache them for 3 minutes each. After the 3
> minutes is up, I'd want the server to cache each file again as it is called.
>  
> I want to do this becuase my server gets so much traffic, I'm having file
> locking problems when I try to update the source files.
>  
> 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.
>  
> Jon
> 
> 
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message