grantmakers / profiles

Grantmakers.io Profiles - Summary profiles for all US-based foundations who have filed electronic IRS Form 990-PF
MIT License
1 stars 1 forks source link

Handle cached site (e.g. Google search cache) #49

Closed chadokruse closed 5 years ago

chadokruse commented 5 years ago

Stitch fails if a visitor is viewing a cached version of the site. Algolia also fails

Most frequently seen

  1. Google cache
  2. Google translate
  3. Visitor downloaded entire site to local folder

Example

Stitch:

a) Can place protection before downloading bundle.js window.location.hostname == grantmakers.io ...OR... b) Add to list of allowed domains ...OR... c) Handle in transformAxiosErrorResult method (and provide additional messaging for visitors)

Note: New static tables were pushed to production AFTER many of the pages were cached by Google. Messaging for Algolia will appear after future Googlebot crawls

Algolia:

E.g. Visitors from cached Google Search links https://webcache.googleusercontent.com/search?

Algolia error response object

{
   "name": "AlgoliaSearchError"
  "message":"Method not allowed with this referer",
  "status":403
}