Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045564
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajorhave not tried2020-12-14 08:292020-12-28 07:27
ReportermarvintmView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR20Q4.1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR20Q4.1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045564: Service workers infrastructure precaches CSS files that are then never used

DescriptionCurrently 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 ReproduceGo 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 SolutionDelete both the getcssFileList method inside MobileCoreApplicationCacheComponent.java and the corresponding CSS section inside cache-manifest-ftl
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0045561 closedranjith_qualiantech_com Service workers infrastructure precaches CSS files that are then never used 

-  Notes
(0125050)
hgbot (developer)
2020-12-23 04:22

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 60380ef19618e97934ee52f4778b1eaac44216a7
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-12-23T08:52:32+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/60380ef19618e97934ee52f4778b1eaac44216a7 [^]

Fixed ISSUE-45564: 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
---

- Issue History
Date Modified Username Field Change
2020-12-14 11:16 shuehner Type defect => backport
2020-12-14 11:16 shuehner Target Version => RR20Q4.1
2020-12-23 03:48 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2020-12-23 04:22 hgbot Resolution open => fixed
2020-12-23 04:22 hgbot Status scheduled => resolved
2020-12-23 04:22 hgbot Fixed in Version => RR20Q4.1
2020-12-23 04:22 hgbot Note Added: 0125050
2020-12-28 07:27 marvintm Review Assigned To => marvintm
2020-12-28 07:27 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker