Jump to content
[MUST READ] Forum Rules ×
  • Posts

    • location / {   if (!-e $request_filename){     rewrite ^(.*)$ /index.php break;   }   if (!-e $request_filename){     rewrite .*$ /index.php?/$1 break;   } }   试试看这个nginx.conf    
    • Why do you have a GoGetSSL badge when you are using ZeroSSL?
    • It's due to the anti bot security system in place
    • my-pwa:   index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>index.html</title> <link rel="manifest" href="manifest.json"> <script> if ('serviceWorker' in navigator) { window.addEventListener('load', () => { navigator.serviceWorker.register('sw.js') .then(reg => console.log('Service worker registered!', reg)) .catch(err => console.error('Error registering service worker', err)); }); } </script> </head> <body> <h1>Welcome to my Progressive Web App!</h1> <p>This is a basic example of a PWA with a manifest and a service worker.</p> </body> </html>   manifest.json { "name": "My PWA", "short_name": "My PWA", "start_url": "/", "display": "standalone", "icons": [ { "src": "https://cdn-icons-png.flaticon.com/512/16/16410.png", "sizes": "192x192", "type": "image/png" }, { "src": "https://cdn-icons-png.flaticon.com/512/16/16410.png", "sizes": "512x512", "type": "image/png" } ] }   sw.js self.addEventListener('install', event => { console.log('Service worker installed'); }); self.addEventListener('activate', event => { console.log('Service worker activated'); }); self.addEventListener('fetch', event => { console.log('Intercepting fetch request for:', event.request.url); });       It s a simple PWA that it works in my XAMPP:     but in http://azucarados.byethost4.com/my-pwa/?i=1 Manifest: Line: 1, column: 1, Syntax error.   😣
  • Forum Statistics

    • Total Topics
      1.6k
    • Total Posts
      10.5k
  • Member Statistics

    • Total Members
      11105
    • Most Online
      1341

    Newest Member
    aron
    Joined
  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...