Caching problem

Hello,

Yesterday I modified my ovhconfig to set app.engine.version=8.5.
Since then I have some files that I used to cache that are no longer cached, while others continue to be cached correctly.
For example: displaying this page: https://collection-appareils.fr/general/html/listeA_imagettes.php is not being cached,
whereas https://collection-appareils.fr/general/html/liste_imagettes_marque.php?lettre=Agfa is.

Thanks

Hi @SylvainH_1

You need to make sure your .ovhconfig file has the line environment=production.

When switching to PHP 8.5, it is very likely that your .ovhconfig ended up with environment=development (or that the version change forced a testing mode). In this mode, Apache does not add expiration headers to the files, so the browser does not cache them.

The difference between your two URLs is the query parameter ?lettre=Agfa; having a parameter makes the browser consider it a unique URL and, if the server does not send cache headers, it could be storing it on its own.

I hope I was able to help you,
Sergio Turpín

Thanks Sergio. This part is good.

I found the source of my problem. I have a snippet of code that handles syndication with Google Ads. That's what caused the crash. Once removed, everything works partially.

Thanks

EDIT, it's not the syndication code, but a single instruction in the middle that was wrong.

I'm glad it got resolved :wink:

Regards @SylvainH_1 :waving_hand: