Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045565 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Web POS | major | have not tried | 2020-12-14 08:29 | 2020-12-28 07:28 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR20Q3.3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | RR20Q3.3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | marvintm | |||||||
OBNetwork customer | Gold | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0045565: Service workers infrastructure precaches CSS files that are then never used | |||||||
Description | Currently there is code inside the Service workers/AppCacheManifest infrastructure that adds CSS files belonging to external modules automatically to the Manifest as separate requests: MobileCoreApplicationCacheComponent.java: method getcssFileList() cache-manifest-ftl <#list data.cssFileList as cssFile> ${cssFile} </#list> This causes the Service Worker to request and store those files separately. However, the WebPOS application then never formally requests them, as their content is already present inside the main StyleSheetResources request. Therefore, we are wasting quite a bit of bandwidth and triggering many unnecessary requests. | |||||||
Steps To Reproduce | Go to livebuilds and access the modules instance. Check in developer tools and see that many css requests exist separately, coming from the Service Worker. Then reload the page (F5), and realise that those css files are never actually requested by the application. | |||||||
Proposed Solution | Delete both the getcssFileList method inside MobileCoreApplicationCacheComponent.java and the corresponding CSS section inside cache-manifest-ftl | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0125049) hgbot (developer) 2020-12-23 04:19 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^] Changeset: 4c322a9af87ca7e605c70a6e125ea7746a9b8e67 Author: Ranjith S R <ranjith@qualiantech.com> Date: 2020-12-23T08:49:03+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/4c322a9af87ca7e605c70a6e125ea7746a9b8e67 [^] Fixed ISSUE-45565: Removed CSS Componenet in Cache Component --- M src/org/openbravo/mobile/core/BaseCoreAppCacheResourceProvider.java M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java M src/org/openbravo/mobile/core/templates/cache-manifest.ftl --- |
![]() |
|||
Date Modified | Username | Field | Change |
2020-12-14 11:16 | shuehner | Type | defect => backport |
2020-12-14 11:16 | shuehner | Target Version | => RR20Q3.3 |
2020-12-23 03:48 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2020-12-23 04:19 | hgbot | Resolution | open => fixed |
2020-12-23 04:19 | hgbot | Status | scheduled => resolved |
2020-12-23 04:19 | hgbot | Fixed in Version | => RR20Q3.3 |
2020-12-23 04:19 | hgbot | Note Added: 0125049 | |
2020-12-28 07:28 | marvintm | Review Assigned To | => marvintm |
2020-12-28 07:28 | marvintm | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |