nwfsc-fram / boatnet

At-Sea Field Data Collection Software Components for Scientific Surveys and Observers
8 stars 5 forks source link

Strange behavior on prod - experienced with OTS #713

Closed sethgerou-noaa closed 5 years ago

sethgerou-noaa commented 5 years ago

When the OTS app is first loaded, the html (all pages) is significantly out of date - by at least a couple weeks.

After hard refresh (ctrl + shift + r) the correct/current html (all pages) loads.

This happens every time the app is closed and reopened.

After performing: More Tools... / Clear Browsing Data, this issue no longer occurs, but I'm wondering why newer html would not automatically replace older html in cache.

Note: Developer Tools / Application / Clear site data did not affect cached html.

ghost commented 5 years ago

Interesting, this is in Chrome? When I do Application-> Clear Storage and close out the tabs, then I get a completely new version of obs-trips, but sounds like your PWA wasn't updating the cached data for some reason. I wonder what implications there are with our multiple PWA's on a shared top level domain (nwfsc.noaa.gov) and all the messy reverse proxy stuff. image Shall keep an eye on this and see what me might need to tweak. Also, just noticed that "activate and is stopped" on both of service workers in that screenshot, perhaps something to do with this. I think we are forced to use the same top-level domain, so need to look into this a bit.

sethgerou-noaa commented 5 years ago

yes, experienced in Chrome.

On Fri, Aug 9, 2019 at 9:21 AM Will Smith notifications@github.com wrote:

Interesting, this is in Chrome? When I do Application-> Clear Storage and close out the tabs, then I get a completely new version of obs-trips, but sounds like your PWA wasn't updating the cached data for some reason. I wonder what implications there are with our multiple PWA's on a shared top level domain (nwfsc.noaa.gov) and all the messy reverse proxy stuff. [image: image] https://user-images.githubusercontent.com/12972097/62793687-017f9300-ba87-11e9-8d02-8cc2201a878b.png Shall keep an eye on this and see what me might need to tweak.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/nwfsc-fram/boatnet/issues/713?email_source=notifications&email_token=AJC7LYOPGOSW72IOY7DFLUTQDWKQXA5CNFSM4IKVNAL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD37EHDQ#issuecomment-519979918, or mute the thread https://github.com/notifications/unsubscribe-auth/AJC7LYPQXUOUTD5446E47SDQDWKQXANCNFSM4IKVNALQ .

--

Seth Gerou

Web Developer - NOAA Affiliate

Earth Resources Technology, Inc. (ERT, Inc)

Northwest Fisheries Science Center

2725 Montlake Boulevard E

Seattle, WA 98112

M: 206-349-6449

seth.gerou@noaa.gov

sethgerou-noaa commented 5 years ago

This issue was resolved with cache busting techniques. also implemented for Obs Trips WCGOP