Document Navigation

PWA Offline Access

In top-tier B2B international trade marketing, getting major overseas clients to "put your company website on their mobile phones" is the ultimate way to build deep trust and increase repeat purchase rates. However, developing a native iOS/Android app is extremely expensive, and overseas buyers are rarely willing to download a supplier's app from an app store.

The SX-Creval system deeply integrates a cutting-edge international PWA (Progressive Web App) engine at its core. This is not just a simple "Add to Desktop" button, but a highly complex and intelligent front-end Service Worker caching proxy architecture . It instantly transforms your independent e-commerce website into an enterprise-grade mobile app with offline access, lightning-fast loading, and an immersive experience.

1. A revolutionary front-end visual experience

When overseas buyers access your SX-Creval website using a mobile browser, the system will prompt them to "add it to their home screen" at an appropriate time.

  • Immersive full-screen experience and exclusive launch screen : When you tap the desktop icon to enter, the browser's address bar and bottom toolbar will completely disappear. In their place, you'll see an immersive status bar automatically generated based on your backend configuration, along with an iOS-exclusive giant launch image . This opening visual, comparable to a million-follower native app, instantly elevates your brand's premium feel.
  • Intelligent Network Status Awareness UI : We built a global floating notification system using Alpine.js at the underlying level. When customers encounter network fluctuations during international flights or at trade shows, a network status notification card with a Gaussian blur texture will gracefully slide out from the lower right corner of the screen, ensuring a smooth user experience at all times.

2. Intelligent caching and traffic distribution architecture (core technology)

Ordinary caching plugins on the market often use a "one-size-fits-all" approach, which can lead to customers frequently seeing outdated products or their phones' memory being overwhelmed by junk images. SX-Creval's PWA engine (sw.js) incorporates up to five highly sophisticated routing strategies, silently protecting your system at the underlying level:

  • Core static assets (Stale-While-Revalidate strategy) :
    For regular HTML pages, the engine instantly displays the page to the client from the cache (achieving a 0-millisecond loading time) while silently requesting the latest version from the server in the background. If it detects that you have updated the product, the system will seamlessly replace it on the next update. This ensures both extreme speed and fresh content.
  • Heavy asset protection (Cache-First strategy) :
    If your machinery or products use modern .glb or .hdr 3D models, these heavy assets, often several megabytes in size, will be locked in the local cache by the PWA engine once successfully loaded. Customers can then view the 3D details instantly without consuming any bandwidth.
  • Strict image memory management (FIFO queue anti-explosion technology) :
    For high-definition product images, the system has set strict "dual thresholds" for both size and quantity. Only finely edited images smaller than 500KB are allowed into the local cache library; at the same time, we have embedded a first-in-first-out (FIFO) cleanup queue at the underlying level. You can freely set it to cache only the 10 to 100 most recently viewed images, and old images will be automatically destroyed once the limit is exceeded, ensuring that your app will never become a "rogue software" that devours the storage of your users' phones.
  • Absolute isolation of the management backend :
    The PWA engine automatically identifies and avoids all CMS backend paths (e.g., /sxkjcms-admin/). No matter how aggressive the frontend caching is, your backend content management system always connects directly to the server, ensuring the absolute security and real-time availability of data for internal operations personnel.

3. Precise separation of dynamic data from HTMX (killer feature)

This is the core highlight that sets SX-Creval apart from all traditional website building systems.

Foreign trade websites require absolute real-time performance for features such as product filtering, pagination, keyword search, and form submission. SX-Creval's PWA engine can accurately detect which requests contain query parameters (?query=) and which are asynchronous HTTP/MX requests from the underlying layer.

  • Forced Network Priority : For this type of request, the PWA engine will instantly switch to network priority mode, forcibly penetrating the cache to ensure that the inventory and product parameters searched by the customer are always the latest data on the current server.
  • The ultimate in elegant offline degradation handling : If a customer clicks "product pagination" or "load more" in an offline environment, a typical website will crash and even break the original page layout. SX-Creval's PWA engine, however, intercepts the crash and injects a very subtle JSON directive (HX-Trigger) into the front end. It doesn't disrupt the layout of any product list; instead, it smoothly invokes the Alpine.js alert box on the front end, gently informing the customer: "Network connection lost, please check your network."

4. Minimalist Backend Configuration Guide

Although the underlying logic is as complex as a space shuttle, in the SX-Creval backend, you can configure it as easily as filling out a form:

Go to "Global Settings -> PWA Settings" :

  1. Application Information : Enter the application name, select the brand theme color and startup background color.
  2. Visual Assets : Simply upload a square logo, and the system will automatically calculate and generate a full set of standard icon formats, including 192px, 512px, and Maskable. You can also upload a separate high-resolution launch image for iOS devices.
  3. Advanced caching directive (pre-caching) : Enter the pages you most want customers to load instantly in the "Pre-cached path list" (e.g., / represents the homepage). When a customer visits the website for the first time, the PWA engine will quietly download these pages in the background, ready for immediate use.
  4. One-click deployment and silent upgrade : Every time you modify and save PWA settings in the background, the system will automatically update the underlying timestamp version number. All customer devices worldwide that have the application installed will silently upgrade their versions in the background without requiring any manual update operations from the user.