Mobile issue with download file

Posted in: Newspaper
Post count: 52

Hello, in our site https://trikalatroll.gr we had a problem for mobile users. Suddenly the home page started to prompt users to download a file instead of loading the page. Only in home page!

I found that the issue was the AMP plugin we use for the mobile version of your theme. When I disable it the problem disappeared. I am waiting for a update to enable it again. Is it something you came across the last days?

Now we have another issue though, some users are complaining that the problem still exists, it has to do with mobile browser cache. When they erase it everything is OK. Is there a way we can force the home page to refresh and ask for new version? At least for a while until we finally solve the issue with AMP.

Thanks
Giorgos

Post count: 20688

Hi,

That is pretty unusual. I know it can happen sometimes, usually due to code in the htaccess https://www.siteground.com/kb/website-downloading-index/ and other causes https://theguidex.com/wordpress-download-file-instead-of-opening-in-browser/ But not due to using the AMP plugin. I don’t think I’ve seen a case where the AMP plugin would cause such an issue.

If I check your website now, the homepage loads correctly on mobile https://prnt.sc/hrqZdSQr_uW- No AMP. But as you said, it may not for visitors that accessed the website when the issue was happening.

You could try this code in the functions file or load it with a code snippet plugin https://pastebin.com/8CAVb8BH It sets a few meta tags for the homepage which should instruct the browser to not use a stored version of the page. Leave the code there for a day or two, then remove it. And please be sure to clear all the caches, from the website and from the hosting if there is any.

Thanks.

Post count: 52

Thank you very much Simion, I used the code you sent at my functions.php and will wait for the results the next days.

Regatds
Giorgos

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.