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

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

 





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




---------------------------------------------------------------------
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