[wp-trac] [WordPress Trac] #33828: When visiting Wordpress sites with CPTs via Firefox the sites return rndmly: User-agent: * Disallow: /wp-admin/
WordPress Trac
noreply at wordpress.org
Mon Sep 14 13:38:16 UTC 2015
#33828: When visiting Wordpress sites with CPTs via Firefox the sites return
rndmly: User-agent: * Disallow: /wp-admin/
--------------------------+----------------------
Reporter: Jyria | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.3
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Comment (by Jyria):
Update:
I found the culprit!
On my server was an nginx directive snippet in place which cause firefox
to stumble over its feet while interpreting Cache-Control which was sent
by my nginx.
The problem were the wrong font signs for " wrapping "public" in the
following code snippet: ( these were the wrong ones: ″ )
`location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
try_files $uri @fallback;
}`
Firefox showed broken Cache-Control definitions instead of these correct
ones:
Cache-Control: "max-age=2592000, public"
this was shown
Cache-Control: "max-age=2592000, âpublicâ"
After correcting the nginx directive (exchanging the wrong quote marks for
the correct ones), the error did not show up in ff anymore.
Chrome didn't have a problem with the other quote marks and therefore
never showed that behaviour.
Also did I find that mod_pagespeed which was activated on that server was
causing caching problems that I could not narrow down specifically though.
Funny thing is, I installed a site on a client's webhosting which is just
a shared webhosting with german STRATO. Same caching problem occurs over
there.
They might have this very nginx directive in place also with those wrong
quotes that can't be interpreted correctly by firefox. Maybe even also
installed mod_pagespeed which is not fully configured.
This can be considered as fixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33828#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list