Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Downstream Caches - PURGE request has a double slash #921

Closed
GoogleCodeExporter opened this issue Apr 6, 2015 · 4 comments
Closed

Downstream Caches - PURGE request has a double slash #921

GoogleCodeExporter opened this issue Apr 6, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Configure your mod_pagespeed:

                ModPagespeedDownstreamCachePurgeLocationPrefix http://localhost:80/
                ModPagespeedDownstreamCachePurgeMethod PURGE
                ModPagespeedDownstreamCacheRewrittenPercentageThreshold 95

2. Use a tool to look at incoming HTTP requests look for PURGE requests. If you 
use varnish you can type:

                varnishlog -m  RxRequest:PURGE                

3. Navigate to www.example.com/somepage.html
4. Look at your logs and look at the URL to which the PURGE request was sent

What is the expected output? What do you see instead?

I would like to see /somepage.html

What I see instead is I would like to see //somepage.html (note the double 
slash)

What version of the product are you using (please check X-Mod-Pagespeed
header)?

1.6.29.7-3566

On what operating system?

Debian 7.0

Which version of Apache?

Apache/2.2.22




Original issue reported on code.google.com by hug...@betabrand.com on 2 Apr 2014 at 12:13

@GoogleCodeExporter
Copy link
Author

Typo in the bug report:

"What I see instead is I would like to see //somepage.html (note the double 
slash)"

should read:

"What I see instead is //somepage.html (note the double slash)"

Original comment by hug...@betabrand.com on 2 Apr 2014 at 12:15

@GoogleCodeExporter
Copy link
Author

As per the discussion in 
https://groups.google.com/forum/#!topic/mod-pagespeed-discuss/qXDQ4FuQ-08 
(parts of 4th, 5th and 6th mails on the thread), removing the trailing slash 
from ModPagespeedDownstreamCachePurgeLocationPrefix fixes the double slash 
issue noted here. What we should probably update the documentation to remove 
the trailing slash in 
https://developers.google.com/speed/pagespeed/module/downstream-caching#ps_downs
tream_conf

Assigning to Jan since he will most probably have more updates to this 
documentation.

Original comment by anup...@google.com on 2 Apr 2014 at 1:44

@GoogleCodeExporter
Copy link
Author

Original comment by j...@google.com on 16 Apr 2014 at 6:59

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Resolved by r3943.

Original comment by j...@google.com on 16 Apr 2014 at 10:24

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant