amppackager icon indicating copy to clipboard operation
amppackager copied to clipboard

SXG not working good with my domain

Open egphp opened this issue 2 years ago • 18 comments

SXG not working good with my domain

https://www.christian-dogma.com/

any advice ?

egphp avatar Jun 27 '22 23:06 egphp

Sorry to hear that you're having a problem with SXG on your site. Have you considered using the SXG validator on files that you serve from your site? It could be found here: https://chrome.google.com/webstore/detail/sxg-validator/hiijcdgcphjeljafieaejfhodfbpmgoe

You can diagnose problems with your site using this tool. Let us know if we could help you further.

banaag avatar Jun 28 '22 00:06 banaag

i use it and i don't know why Cache not green
any advice ?

Screen Shot 2022-06-28 at 2 15 28 AM

egphp avatar Jun 28 '22 00:06 egphp

This just means that your SXG hasn't made it to the cache yet. You may need to wait a day or so and check the status again.

banaag avatar Jun 28 '22 00:06 banaag

thanks for your help Sorry , help me to understand
i cached that url for 5 minutes that's mean it's will wait a day for 5 minutes . or to start caching

egphp avatar Jun 28 '22 00:06 egphp

there any way to know , how many urls cached ?

egphp avatar Jun 28 '22 00:06 egphp

You need to wait a period of time for the SXG to be processed by the system. That may take a day or two before it makes into the cache.

banaag avatar Jun 28 '22 00:06 banaag

Sorry but the tool can only do per URL checks at this time. It won't be able to tell you how many total URLs on your site got cached.

banaag avatar Jun 28 '22 00:06 banaag

Just to follow up, does https://www.christian-dogma.com/ deploy a SXG file? Could you forward a link of that SXG file?

banaag avatar Jun 28 '22 22:06 banaag

thanks for follow up i don't know , i enable it via cloudflare and just send headers from my side Date , Expires , Cache-Control and Last-Modified any advice ?

egphp avatar Jun 28 '22 23:06 egphp

Hey egphp, just to confirm, are you using Cloudflare's Automatic Signed Exchanges?

antiphoton avatar Jun 28 '22 23:06 antiphoton

yes , am

egphp avatar Jun 28 '22 23:06 egphp

Sorry i close it , and reopen by wrong , i really need help

egphp avatar Jun 28 '22 23:06 egphp

Which document are you following to enable Cloudflare's Automatic Signed Exchanges? Have you contacted Cloudflare's customer support?

antiphoton avatar Jun 28 '22 23:06 antiphoton

i try for amp https://www.christian-dogma.com/ampch/ Screen Shot 2022-06-29 at 1 57 35 AM

and for non-amp https://www.christian-dogma.com/ Screen Shot 2022-06-29 at 1 57 26 AM

yes , i did contacted their support , once it's green , they don't know why it's not cached !!

i don't have problem to setup it at my server , am server admin too but if there any small fix , will be happy

other way , please tell me how to setup it at centos with nginx via url and i will continue

egphp avatar Jun 29 '22 00:06 egphp

I noticed that the SXG served by your domain has a TTL of only 63 minutes. If the SXG has expired when Googlebot crawls your website, the SXG will not be cached. Would it possible to set the TTL to be longer, for example, to be a few days?

antiphoton avatar Jun 29 '22 00:06 antiphoton

SXG

can you please provide example of url to check and be sure , or how you check it , to see it before and after fix it

egphp avatar Jun 29 '22 00:06 egphp

am wondering :) https://signed-exchange-testing.dev/sxgs/valid.html Screen Shot 2022-06-29 at 3 31 10 AM not cached too

that url procivde via google https://developers.google.com/search/docs/advanced/experience/signed-exchange#additional-requirements-for-google-search Screen Shot 2022-06-29 at 3 32 03 AM

egphp avatar Jun 29 '22 01:06 egphp

There was some delay in processing this example page, but it's in the cache now Screen Shot 2022-06-29 at 9 20 30 PM .

banaag avatar Jun 30 '22 04:06 banaag