Code Monkey home page Code Monkey logo

Comments (9)

vvatelot avatar vvatelot commented on May 29, 2024 1

Pfff... Si les gens y mettent pas du leur aussi ! 😅

from ecoindex_badge.

vvatelot avatar vvatelot commented on May 29, 2024

Hello, merci pour ta remontée !
Quand je regarde les résultats, je vois que celui qui a une note C a été fait à 10h26 alors que celui qui a une note B a été fait à 10h19... Du coup, c'est normal que le redirect renvoie vers la derniÚre analyse (donc la C) et que le plugin affiche la note C.

Ce qui l'est moins, c'est que le badge affiche la note B, mais ça s'explique par le cache à 2 niveaux:

  • Il y a un cache de 7 jours cotĂ© serveur (dans le BFF) mais qui a Ă©tĂ© mis Ă  jour lorsque tu as fait une nouvelle analyse
  • Il y a un cache de 7 jours cĂŽtĂ© client pour le badge

Peut ĂȘtre faudrait il trouver un moyen d'invalider le cache client lors d'une mise Ă  jour de rĂ©sultat..?

from ecoindex_badge.

hrenaud avatar hrenaud commented on May 29, 2024

Merde, j'ai reculĂ©, c'est bizarre, j'ai enlevĂ© le chargement d'une des deux polices pour obtenir ce rĂ©sultat. Je ne comprends pas comment j'ai pu atteindre un B, puis redescendre Ă  C en faisant cette action en plus đŸ€·â€â™‚ïž

from ecoindex_badge.

jpkha avatar jpkha commented on May 29, 2024

Je ne crois pas qu'il soit possible d'invalider un cache client Ă  moins que ça soit l'utilisateur qui vide son cache cĂŽtĂ© navigateur. Tant que le cache est actif, le navigateur ne fera pas de requĂȘte au serveur.

from ecoindex_badge.

vvatelot avatar vvatelot commented on May 29, 2024

Il faut faire un ctrl+maj+R pour refresh le cache local...

from ecoindex_badge.

vvatelot avatar vvatelot commented on May 29, 2024

@hrenaud du coup cette issue est elle encore utile ?

from ecoindex_badge.

jpkha avatar jpkha commented on May 29, 2024

Je crois pas qu'on puisse dire Ă  tous les visiteurs de faire ctrl+maj+R :) ?

from ecoindex_badge.

hrenaud avatar hrenaud commented on May 29, 2024

Je suis d'accord avec @jpkha, l'utilisateur ne le sait pas, lui, que ce n'est pas cohérent.

Et en plus, je crois l'avoir fait (j'ai récupéré mon B, donc je ne peux plus tester).

from ecoindex_badge.

github-actions avatar github-actions commented on May 29, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from ecoindex_badge.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.