Re: [squid-users] new website: final beta
On Thu, May 10, 2007 at 11:46:42AM +1200, [EMAIL PROTECTED] wrote: > > I don't have the web skills that you do, but I found the easiest way to > > make php's cache-able was to lynx dump the php to a .html, and have > > apache serve index.html in preference to index.phtml. Naturally, all > > links to pages must be to the .html and not the .php: > > > > Whereas I have a completely alternate experience with cachability. > PHP has the ability to easily prepend headers that specify cachability and > duration. > Alternatively apache can do that itself with VirtualHost or .htaccess > configs. > Oh OK, I never even thought of using mod_expires entries in per directory .htaccess files. Good point. I did play about with PHP headers, but found it awkward when using common header templates and wanting only some pages to be dynaminc. Thanks for the tip.
Re: [squid-users] new website: final beta
Might want to have a look at http://www.mnot.net/cgi_buffer/ which, despite its name, has a PHP one-line drop-in that might do the trick. Mind you, I haven't looked at that code in years, and there very well may be some bugs in there, or compatibility with newer versions of PHP, but it's a starting point... Cheers, On 2007/05/10, at 12:02 AM, Adrian Chadd wrote: On Wed, May 09, 2007, Craig Skinner wrote: On Wed, May 09, 2007 at 02:14:33PM +0200, Ralf Hildebrandt wrote: Nice work Adrian! Definitely. Struth Bruce! Nice one mate! Sort of quoting one of Yahweh's olde proverbs: "...squidmaster, cache thy self" Will the final site be cache-able? I don't have the web skills that you do, but I found the easiest way to make php's cache-able was to lynx dump the php to a .html, and have apache serve index.html in preference to index.phtml. Naturally, all links to pages must be to the .html and not the .php: It will be. I just haven't yet added E-Tag and Expiry generation to the PHP code. I'll see what I can do. I haven't found an example of a really good dynamic site that actually sets appropriate cachability tags (and does so with minimal load to the server - there's no point in having to do the whole database query set and parse the database replies just to generate etags, for example!) so I figure this can double as that. Now, where's that spare time.. Adrian -- Mark Nottingham [EMAIL PROTECTED]
Re: [squid-users] new website: final beta
> On Wed, May 09, 2007, Craig Skinner wrote: >> On Wed, May 09, 2007 at 02:14:33PM +0200, Ralf Hildebrandt wrote: >> > > >> > > Nice work Adrian! >> > >> > Definitely. >> > >> >> Struth Bruce! Nice one mate! >> >> Sort of quoting one of Yahweh's olde proverbs: >> "...squidmaster, cache thy self" >> >> Will the final site be cache-able? >> >> I don't have the web skills that you do, but I found the easiest way to >> make php's cache-able was to lynx dump the php to a .html, and have >> apache serve index.html in preference to index.phtml. Naturally, all >> links to pages must be to the .html and not the .php: > > It will be. I just haven't yet added E-Tag and Expiry generation to the > PHP code. I'll see what I can do. I haven't found an example of a really > good dynamic site that actually sets appropriate cachability tags > (and does so with minimal load to the server - there's no point in having > to do the whole database query set and parse the database replies > just to generate etags, for example!) so I figure this can double as > that. > > Now, where's that spare time.. > > > > > Adrian > Sitting here in the coutry next door. I've never done ETag, but the way you have setup the templating is not too dissimilar to the way my sites work. I have some ideas for base metrics I'll talk about when I see you on irc tonight. Amos
Re: [squid-users] new website: final beta
> On Wed, May 09, 2007 at 02:14:33PM +0200, Ralf Hildebrandt wrote: >> > >> > Nice work Adrian! >> >> Definitely. >> > > Struth Bruce! Nice one mate! > > Sort of quoting one of Yahweh's olde proverbs: > "...squidmaster, cache thy self" > > Will the final site be cache-able? > > I don't have the web skills that you do, but I found the easiest way to > make php's cache-able was to lynx dump the php to a .html, and have > apache serve index.html in preference to index.phtml. Naturally, all > links to pages must be to the .html and not the .php: > Whereas I have a completely alternate experience with cachability. PHP has the ability to easily prepend headers that specify cachability and duration. Alternatively apache can do that itself with VirtualHost or .htaccess configs. Amos
Re: [squid-users] new website: final beta
On Wed, May 09, 2007, Craig Skinner wrote: > On Wed, May 09, 2007 at 02:14:33PM +0200, Ralf Hildebrandt wrote: > > > > > > Nice work Adrian! > > > > Definitely. > > > > Struth Bruce! Nice one mate! > > Sort of quoting one of Yahweh's olde proverbs: > "...squidmaster, cache thy self" > > Will the final site be cache-able? > > I don't have the web skills that you do, but I found the easiest way to > make php's cache-able was to lynx dump the php to a .html, and have > apache serve index.html in preference to index.phtml. Naturally, all > links to pages must be to the .html and not the .php: It will be. I just haven't yet added E-Tag and Expiry generation to the PHP code. I'll see what I can do. I haven't found an example of a really good dynamic site that actually sets appropriate cachability tags (and does so with minimal load to the server - there's no point in having to do the whole database query set and parse the database replies just to generate etags, for example!) so I figure this can double as that. Now, where's that spare time.. Adrian
Re: [squid-users] new website: final beta
On Wed, May 09, 2007 at 02:14:33PM +0200, Ralf Hildebrandt wrote: > > > > Nice work Adrian! > > Definitely. > Struth Bruce! Nice one mate! Sort of quoting one of Yahweh's olde proverbs: "...squidmaster, cache thy self" Will the final site be cache-able? I don't have the web skills that you do, but I found the easiest way to make php's cache-able was to lynx dump the php to a .html, and have apache serve index.html in preference to index.phtml. Naturally, all links to pages must be to the .html and not the .php: $ cat /usr/local/site/bin/php2html #!/bin/ksh # the packet filter prevents local access to the public interfaces export http_proxy='http://localhost:80/' host=$1 host ${host} > /dev/null [ $? -ne 0 ] && { host ${host}; exit 1; } shift for source in $* do #echo ${source} | grep '.phtml$' || continue html=$(echo ${source} | sed 's~.phtml$~.html~') lynx -source ${host}/${source} > ${html}~ mv ${html}~ ${html} done I then build a file of phps to redirect into the above via find, grep & friends, to exclude items that need to be dynamic, such as contact forms and the like. I supose you could be more intelligent and only process the phps that are newer than the (non-existing?) corresponding static page: $ head php2html.list 404.phtml yes, apache is set to 404 on the static .html index.phtml faq/*.phtml pricing/index.phtml pricing/resellers.phtml .. .. -- Craig Skinner | http://www.kepax.co.uk | [EMAIL PROTECTED]
Re: [squid-users] new website: final beta
* Emilio Casbas <[EMAIL PROTECTED]>: > http://new.squid-cache.org/ > The "Security Advisories" link is not working > > Nice work Adrian! Definitely. -- Ralf Hildebrandt (i.A. des IT-Zentrums) [EMAIL PROTECTED] Charite - Universitätsmedizin BerlinTel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-BerlinFax. +49 (0)30-450 570-962 IT-Zentrum Standort CBFsend no mail to [EMAIL PROTECTED]
Re: [squid-users] new website: final beta
On Wed, May 09, 2007, Emilio Casbas wrote: > The new web looks very good and clean. > Have you think in the possibility of a new section such as "News" or > "Blog" speaking about the latest squid related news?. I've thought about it! But I'm doing this in my spare time; and there's not much "spare".. > http://new.squid-cache.org/ > The "Security Advisories" link is not working Yup, i'm aware that /Advisories/ isn't working at the moment. Thanks for the feedback though! I'll take everyone's suggestions under consideration and try to fix the last niggling buglets during the weekend. Hopefully it'll be ready to put public on Monday. (And if you feel like writing some News articles, or you do Squid stuff and would like a Blog then please let me know and we'll sort something out.) Adrian
Re: [squid-users] new website: final beta
Chris Nighswonger escribió: On 5/8/07, Adrian Chadd <[EMAIL PROTECTED]> wrote: Hi everyone, The new website is at http://new.squid-cache.org/. I'd like to put this version live in the next week or so. Could I get my writings proofed and links checked by someone with a little spare time? Ok. I took some time to proof the home page, exercise the links under "Introduction," proof that set of pages, and verify the links on that set of pages. Here are my notes: * http://new.squid-cache.org/Intro/who.dyn under "duane wessels" 'co-ordinator' should not be hyphenated. * Same url under "henrik nordstrom, " 'Makes his living from Squid consulting and other Open Source related activities.' should read 'He makes his living from Squid consulting and other Open Source related activities.' * http://new.squid-cache.org/Intro/helping.dyn under "Donate equipment and hardware to Squid developers" the line reading 'or now, Email [EMAIL PROTECTED] for further information.' needs an href to make the email address clickable, and the word 'Email' should not be capitalized. NOTE: This only covers the home page and Introduction link pages. I'll do more as I have time. The new web looks very good and clean. Have you think in the possibility of a new section such as "News" or "Blog" speaking about the latest squid related news?. http://new.squid-cache.org/ The "Security Advisories" link is not working Nice work Adrian! Thanks Emilio C.
Re: [squid-users] new website: final beta
On 5/8/07, Adrian Chadd <[EMAIL PROTECTED]> wrote: Hi everyone, The new website is at http://new.squid-cache.org/. I'd like to put this version live in the next week or so. Could I get my writings proofed and links checked by someone with a little spare time? Ok. I took some time to proof the home page, exercise the links under "Introduction," proof that set of pages, and verify the links on that set of pages. Here are my notes: * http://new.squid-cache.org/Intro/who.dyn under "duane wessels" 'co-ordinator' should not be hyphenated. * Same url under "henrik nordstrom, " 'Makes his living from Squid consulting and other Open Source related activities.' should read 'He makes his living from Squid consulting and other Open Source related activities.' * http://new.squid-cache.org/Intro/helping.dyn under "Donate equipment and hardware to Squid developers" the line reading 'or now, Email [EMAIL PROTECTED] for further information.' needs an href to make the email address clickable, and the word 'Email' should not be capitalized. NOTE: This only covers the home page and Introduction link pages. I'll do more as I have time. Great work, Adrian! Chris
Re: [squid-users] new website: final beta
On Tue May 8 15:53 , Adrian Chadd sent: >Hi everyone, > >The new website is at http://new.squid-cache.org/. I'd like to put >this version live in the next week or so. Could I get my writings >proofed and links checked by someone with a little spare time? > >Thanks, > > >Adrian > Now I do like that. Nice and clean in my opinion. I will mess about with it when I get home, but otherwise if this is now the official website it looks good. GJE
[squid-users] new website: final beta
Hi everyone, The new website is at http://new.squid-cache.org/. I'd like to put this version live in the next week or so. Could I get my writings proofed and links checked by someone with a little spare time? Thanks, Adrian