Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2015-01-21

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
14:09 goehle joined #webwork
15:35 shdw_work joined #webwork
15:58 aubreyja joined #webwork
15:58 aubreyja joined #webwork
19:29 goehle hey aubreyja
19:30 goehle do you know if browser side cache-ing actually reduces the number of connects a page makes with a server, or just speeds them up?
21:03 ilbot3 joined #webwork
21:03 Topic for #webwork is now WeBWorK (http://webwork.maa.org) is an open-source online homework system for math and sciences courses. WeBWorK is supported by the MAA and the NSF. | Release notes: http://goo.gl/Ry5HN | Channel logged at http://goo.gl/jELTn
21:18 aubreyja hi goehle - I think it just speeds them up. i don't see how it could reduce the #, but i could be wrong.
21:18 goehle I think you are right
21:18 goehle do you know much about mod_expires?
21:19 aubreyja nope, what are you trying to do/
21:19 aubreyja ?
21:19 goehle people at ncsu have been having trouble using webwork in class
21:19 goehle their network guy pointed out that loading the problem page involves 30 different requests
21:19 goehle I was hoping to reduce that by enabling cacheing
21:20 aubreyja ah, yeah, that's because of the way the page is built. it's very inefficient.
21:20 goehle right
21:20 aubreyja The best thing would be to do templating right
21:20 goehle well
21:20 goehle the big issue is the font/css/js
21:21 goehle if we could combine all of the css and js it would reduce the calls by half
21:21 goehle I'm putting some work in reordering them so that it will download the css in paralell
21:22 aubreyja which would mean creating a complete data structure and then filling out the template, but we can't do that (yet) b/c of all of the timing issues I think
21:22 aubreyja ah, I'm thinking of the way pg and all of the environment variables work to make the page
21:23 goehle well thats inefficient enough
21:23 goehle but its all server side
21:23 aubreyja but, still, I find it really strange that this is the issue
21:23 goehle thats the big wait for the main http comes down
21:23 aubreyja it's not a problem anywhere else that I know of
21:23 aubreyja and these days, a lot of web apps need like a billion calls to load the page b/c of all of the advertising bs
21:24 goehle well enabling caching does the trick
21:24 aubreyja ah, great then.
21:24 goehle especially if you are using mathjax
21:24 goehle shoudl that be something that comes as part of the default config
21:24 goehle or is it really a server admin issue
21:24 aubreyja yeah, my vote would be to force caching by default
21:25 goehle that would be up to you
21:25 goehle the installer  would have to enable mod_expires
21:25 goehle but we can put some config stuff for mod_expires in the webwork apache menu
21:25 goehle which would run if it was enabled
21:25 aubreyja yeah, we could do that
21:26 aubreyja I guess we should test this though; maybe it has unintended side effects.
21:26 aubreyja e.g. with images
21:26 goehle yeah
21:26 goehle although they should have hashes on their names
21:26 goehle so it should *help* with them
21:26 goehle if they are set up appropriately
21:27 aubreyja Yeah, but a while back that argument wasn't working for IE in some cases. I forgot what the fix was. Maybe it was turning of caching.
21:27 aubreyja ;)
21:28 goehle I dont see how having different file names wouldnt be the answer
21:28 goehle IE has to be really agressive about cacheing if it will use an image with a different name instead of downloading one
21:28 aubreyja Yeah, seems impossible.
21:28 goehle now there are issues with moving problems around
21:28 goehle and the images associated with them
21:28 goehle but that may be the pg cache
21:29 goehle and not the client cache
21:42 goehle Well, aubreyja
21:42 goehle Take a look at https://github.com/openwebwork/webwork2/pull/555
21:43 goehle or pass it along to someone who knows more about that
21:43 aubreyja just a sec
21:43 goehle I think its worth a try although it may not be worth merging.
21:44 aubreyja looks good - I can put it on my server to see what happens
21:44 goehle I'll put it on mine as well

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary