I have set up a second virtual site on my computer so that I can use www2 instead of www because that's already used and I want to keep it separate.
I have a very simple html page in www2 and this is the exact code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- 151111 --> <html>
<head> <title>6 Hour Live data usage</title> <meta http-equiv="refresh" content="10" > </head>
<body>
<img width="1250" height="800" src="/graphs/Power-6hr.png">
</body> </html>
Notice the meta tag in the header which refreshes the page every 10 seconds. If I access this page with a web browser as a file i.e. file/// it works as expected, although I have to change the src= path to include / var/www2, but if I access it using http:// it doesn't update and if I use 'view/page source' I see that:
<meta http-equiv="refresh" content="10" >
has been replaced with:
<link rev="x-refresh" href="" >
Why should that happen?
At Wed, 16 Nov 2011 11:49:30 +0000, Barry Samuels wrote:
I have set up a second virtual site on my computer so that I can use www2 instead of www because that's already used and I want to keep it separate.
This may be a red herring.
If I access this page with a web browser as a file i.e. file/// it works as expected, although I have to change the src= path to include / var/www2, but if I access it using http:// it doesn't update and if I use 'view/page source' I see that:
<meta http-equiv="refresh" content="10" >
has been replaced with:
<link rev="x-refresh" href="" >
Why should that happen?
What browser? I assume you've tried others?
What does:
$ curl http://www2.foo.bar/baz.html
look like? And what if you disable some content filtering plugins in your $browser?
Best, Richard
On 16/11/11 23:22:07, Richard Lewis wrote:
At Wed, 16 Nov 2011 11:49:30 +0000, Barry Samuels wrote:
I have set up a second virtual site on my computer so that I can use www2 instead of www because that's already used and I want to keep it separate.
This may be a red herring.
Ah! I suspected something fishy was going on.
If I access this page with a web browser as a file i.e. file/// it works as expected, although I have to change the src= path to include / var/www2, but if I access it using http:// it doesn't update and if I use 'view/page source' I see that:
<meta http-equiv="refresh" content="10" >
has been replaced with:
<link rev="x-refresh" href="" >
Why should that happen?
What browser? I assume you've tried others?
Swiftfox. I've also tried Iceape, Opera and Epiphany. All show the same code change.
What does:
$ curl http://www2.foo.bar/baz.html
look like?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- 151111 --> <html>
<head> <title>2 Hour Live data usage</title> <link rev="x-refresh" href="" > </head>
<body>
<img src="graphs/Power1-10min.png" width="1264" height="812">
</body> </html>
And what if you disable some content filtering plugins in your $browser?
Epiphany has no add-ons of any kind.
Best, Richard
On 17/11/11 09:32, Barry Samuels wrote:
Swiftfox. I've also tried Iceape, Opera and Epiphany. All show the same code change.
A proxy?
A google for rev="x-refresh" pointed me at http://osdir.com/ml/debian-bugs-closed/2011-03/msg00068.html .. and "privoxy"
A proxy would also better explain why it works as a file but not when served from a web-server.
On 17/11/11 09:47:24, Mark Rogers wrote:
On 17/11/11 09:32, Barry Samuels wrote:
Swiftfox. I've also tried Iceape, Opera and Epiphany. All show the same code change.
A proxy?
A google for rev="x-refresh" pointed me at http://osdir.com/ml/debian-bugs-closed/2011-03/msg00068.html .. and "privoxy"
A proxy would also better explain why it works as a file but not when served from a web-server.
-- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER
Spot on that man! Yes it was Privoxy. It has this in the configuration:
################################################################################# # # refresh-tags: Kill automatic refresh tags if refresh time is larger than 9 seconds. # #################################################################################
As I didn't understand the filter line and couldn't see '9' anywhere I've change my page refresh time to 9 and it now works.
Many thanks.
What browser? I assume you've tried others?
Swiftfox. I've also tried Iceape, Opera and Epiphany. All show the same code change.
What does:
$ curl http://www2.foo.bar/baz.html
look like?
<link rev="x-refresh" href="" >
OK. So browser mangling is unlikely to be the problem.
I have set up a second virtual site on my computer so that I can use www2 instead of www because that's already used and I want to keep it separate.
This may be a red herring.
Ah! I suspected something fishy was going on.
You may, therefore, need to continue fishing in this pond.
Best, Richard