=== BugMaN1 is now known as BugMaN | ||
qense | hello | 15:23 |
---|---|---|
rxMokka | hi guys :D anyone around thats familiar with the implementation of ubuntu.com's drupal theme? | 20:39 |
rxMokka | I'm trying to detect updates to any one of these pages, in an efficient way(other than full download would be prefered)... but one seem to have last-modified header | 20:41 |
rxMokka | "http://www.ubuntu.com/taxonomy/term/2/0","http://www.ubuntu.com/usn", "http://www.ubuntu.com/taxonomy/term/2/0/feed" | 20:41 |
rxMokka | I'm told that reply headers are simply implemented via listing in a $headers variable in the template file, and am wondering if last-modified is infact implemented, and is just getting zapped by the cache-proxy, or if there is some other method I could be using to detect changes to these pages | 20:42 |
rxMokka | hey mpt | 21:10 |
mpt | hi rxMokka | 21:10 |
rxMokka | would you happen to be familiar with ubuntu.com's implementation of the drupal theme? | 21:11 |
rxMokka | the http reply headers are my specific interest | 21:12 |
mpt | rxMokka, not at all | 21:36 |
mpt | sorry | 21:36 |
mpt | newz2000 is the expert on that | 21:36 |
newz2000 | hi | 21:36 |
newz2000 | rxMokka: what is it you need to know? | 21:37 |
rxMokka | newz2000: I'm wanting to know if last-modified header is enabled in drupal, and getting filtered out by the cache-proxy | 21:41 |
rxMokka | or if its not enabled, and could be | 21:41 |
rxMokka | I'm working on an outomated monitoring script for USNs, and would rather not download the entire USN feed to see if its been changed... if there's a possibility to just pull the http reply headers and check a last-modified | 21:42 |
newz2000 | we have a squid proxies in between drupal and you. We've made some custom modifications in order to make drupal play nice with squid. | 21:42 |
newz2000 | ah, I see | 21:42 |
rxMokka | the Age header seems like it could get out of sync too easily to depend on | 21:42 |
rxMokka | and judging by wikipedia description, Date's not quite what I'm looking for either | 21:43 |
rxMokka | but I could be way wrong on date | 21:43 |
newz2000 | rxMokka: not currently but if you want to file a launchpad bug against ubuntu-website product I'll investigate it when we migrate to Drupal 6 | 21:43 |
rxMokka | newz2000: no chance its as easy as adding ', last-modified' to the tpl.php's $headers variable? | 21:43 |
newz2000 | sorry, but it's not | 21:44 |
rxMokka | bummer | 21:44 |
newz2000 | a lot on the page can change besides the node content | 21:44 |
rxMokka | newz2000: it'd still work for me even if last-modified changed to reflect non-node changes... since I would beable to just look at the http://www.ubuntu.com/taxonomy/term/2/0/feed page, with no content except for node content | 21:45 |
rxMokka | but I can see how it could confuse the clients of other users looking at main-site pages :/ | 21:46 |
rxMokka | but then again, with no last-modified currently in use, isn't everyone's client requesting a full fresh copy every time anyway? | 21:47 |
* newz2000 checks | 21:47 | |
newz2000 | correct, there is no support for if-modified-since / conditional get with the system the way it's currently configured | 21:48 |
newz2000 | I have written code for this type of thing for another CMS and can attest that there are a lot of variables and it is not trivial to implement. | 21:49 |
rxMokka | ah ok | 21:49 |
rxMokka | well thanks newz2000 | 21:49 |
newz2000 | always happy to try and help | 21:50 |
rxMokka | I'll put in a bug request, and make due with some slightly pulls in the mean time | 21:50 |
newz2000 | as an alternative you can subscribe to the security announcement list | 21:50 |
rxMokka | *some slightly larger | 21:50 |
newz2000 | the security team triggers the emails the same time they update the rss feed | 21:50 |
newz2000 | so you could subscribe a unique address and use incoming mails to that as a trigger to pull the rss | 21:50 |
rxMokka | oh cool, they did not mention that an email was auto-triggered by the USN publication | 21:51 |
newz2000 | well, that's the way it used to be. They have an automation system that does something like this. | 21:51 |
newz2000 | I may not have a complete understanding of the process but it's something like that | 21:51 |
rxMokka | looks like they use the same drupal template to generate the email formats as well | 21:52 |
rxMokka | I'll checkout their tool on launchpad and verify its operation, nice pointer thanks! | 21:52 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!