cache bug when refresh translation js files

Created on 24 May 2019, about 5 years ago
Updated 7 November 2023, 7 months ago

file: core/modules/locale/locale.module
the bug is in _locale_rebuild_js($langcode = NULL)
No cache is considered when rebuilding the translation js file
This leads to some problems,for example:
the service "http_middleware.page_cache" , Cached pages cannot load new translation js files

There are two solutions:
1、in translation js file,Use a fixed file name,Don't include hashes
2、to invalidate cache tag 'http_response' When rebuilding a translated js file ,the cache tag 'http_response' is added by the service 'finish_response_subscriber'

The first solution is recommended for performance reasons, File names that do not use hashes do not cause other problems

πŸ› Bug report
Status

Closed: works as designed

Version

9.5

Component
LocaleΒ  β†’

Last updated 3 days ago

Created by

πŸ‡¨πŸ‡³China yunke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Thanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.

    As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)". This issue was marked "Postponed (maintainer needs more info)" almost a year ago and there has been no activity since that time.

    Since we need more information to move forward with this issue, I am keeping the status at Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

  • Status changed to Closed: works as designed 7 months ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

    Steps to reproduce this problem were asked for 2 years ago and again 9 months ago. I am closing this as explained in #9.

    Thanks

Production build 0.69.0 2024