Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5 erp5
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 140
    • Merge requests 140
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !1375

Open
Created Mar 11, 2021 by Gabriel Monnerat@gabrielDeveloper
  • Report abuse
Report abuse

WIP: erp5_dms: Add modificaiton_date to URL to make sure browser reloads the image in ERP5JS

  • Overview 3
  • Commits 1
  • Changes 1

In ERP5JS, when we access a Web Illustration, change it through Edit tab and go back to View, the image is old because the URL and browser does not ask to backend if something has changed.

For example, changing and switching to View tab never changes the URL "web_page_module/9?format=".

If we access it directly it returns 200 for the first time, 304 if we reload and 200 again if we edit this document. This is good and expected.

To fix this issue, modification_date will be passed in the URL and every change will make this property different. Then, browser will reload the page only if we change it.

Edited Mar 12, 2021 by Gabriel Monnerat
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: fix_web_illustration
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7