Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14386

Use timestamp as cache-buster instead of localised date string

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.5.0
    • None
    • None
    • 0.5
    • Quasar
    • Puma Sprint 251

    Description

      The nav-app adds a unique request-parameter to the URL as a cache-buster. If the CMS does not provide a cache-buster key, one is generated by the nav-app. Currently, this is done by calling new Date().toLocaleString() which produces something likeĀ "08/01/2021, 09:42:29" depending on the user's locale. A much simpler and less error-prone approach is to use the numeric timestamp returned by Date.now() which looks like 1610095486648.

      Apart from this, the related unit test should be updated as currently, it compares values of toLocaleString() which will fail every once in a while.

      Attachments

        Activity

          People

            Unassigned Unassigned
            abogaart Arthur Bogaart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: