Slide 1

Slide 1 text

How serverless technologies can help SEOs overcome legacy (and modern) tech obstacles Dan Taylor // SALT.agency SLIDESHARE.NET/DANTAYLOR29 @TAYLORDANRW

Slide 2

Slide 2 text

/about/ Senior Technical Consultant @ SALT.agency https://sloth.cloud https://hreflangchecker.com https://salt.agency https://techseopodcast.com

Slide 3

Slide 3 text

Edge SEO means using edge computing technologies to create new SEO implementation methods, testing, and research processes outside of the current parameters in which we operate.

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

OOTB CDN Benefits • Speed optimization of content delivery • Including payload optimization & compressions • Bandwidth savings • Content accessibility / uptime reliability • Security benefits, i.e. WAF / DDoS Mitigation • Reverse proxy other platforms to subfolders etc • “Edge SEO” stuff

Slide 6

Slide 6 text

Why is this needed? • Congested development queues // long lead times • Lack of “business buy in” to action SEO fixes as a priority • Platforms with restrictions • Random Google support changes • Builds not scoped properly • Code freezes

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Robots.txt Modding Yes Yes* Yes Redirects Yes Yes* Yes AB Testing Yes Yes* Yes Hreflang Injection Yes Yes* Limited Security Headers Yes Yes* Yes “Logging” Yes Yes* No Need Dynamic JS Prerendering Yes Yes* Yes Meta Data Yes Yes* Yes

Slide 12

Slide 12 text

Example worker codes/uses • Implement redirects • AB testing • Overwrite hardcoded meta data / HTML elements • Integration in the pre-rendering of JavaScript • Implement Hreflang • Pseudo log file collection • Dynamic meta data

Slide 13

Slide 13 text

HTML declared title tag: ODN Script: Result:

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Pseudo log file collection Not all platforms all log file collection… Sometimes getting hold of logs isn’t easy due to gatekeepers.

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

•Access to edit robots.txt •Access to pull pseudo log files •Customise server headers A grey cloud means your web traffic is not running through Cloudflare.

Slide 18

Slide 18 text

AB Testing • ABCD test URLs by directing traffic via the CDN • Monitor page level metrics via Google Analytics / Google Data Studio Reports • Requires pages to “be live” Live Example: https://dantaylor.online/sloth-ab

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Dynamic Prerendering of JavaScript Prerender JavaScript by rendering cached versions of the site periodically, rather than on a per request basis. Can reduce costs for prerendering JS server side, and complies with Google’s recommended implementation of dynamic rendering, by switching between client-side and pre-rendered content for specific user-agents.

Slide 21

Slide 21 text

Source: https://developers.google.com/search/docs/guides/dynamic-rendering

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Step 1 – Halt, who goes there? Request Comes In

Slide 24

Slide 24 text

Step 2 – =IF(”Googlebot|Bingbot…”, P1, P2) Check Cache For Prerendered Page Client Side Render Return It No Cache

Slide 25

Slide 25 text

Step 3 – What Happens If No Cache? Trigger Prerendering. 1. Wait and return the prerendered page – but monitor the time it takes, if it takes 7-seconds, negative impact. 2. We could return the page after 1-second of prerendering, but likely to be useless.

Slide 26

Slide 26 text

Worker Solution When Caught Short We return https://httpstatuses.com/503 with Retry- After; this has not been tested in real world AFAIK, but the idea would be to tell crawler to attempt again in 10 seconds for that page

Slide 27

Slide 27 text

Cold Cache Issues To solve issue of cold caches, we have a batch job, checking cache for stale entries and prerendering them, and to seed cache we can either use a sitemap or crawl our own site.

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

New technologies require new processes.

Slide 30

Slide 30 text

Pros (Development) •Workers are written in JavaScript/WASM •One-click deployment/pullback •Next to zero dev ops required •Can be verified and monitoring through existing tools/methods

Slide 31

Slide 31 text

Cons (Development) • Potential to affect and impact all requests between client and server • Potential to add latency and slow page load times, depending on implementation (our testing has shown between 10ms and 50ms latency) • Potential to introduce front-end bugs that are difficult to debug when it is unclear what is being modified/injected through stream transformation

Slide 32

Slide 32 text

Internal Processes & Challenges •Responsibility and accountability •Change management •Development and release management •Debugging process •Security •Compliance (legal, privacy, GDPR)

Slide 33

Slide 33 text

Restricting access to your CDN Access to your Cloudflare, Akamai, or Incapsula account needs to be locked down within the organisation because even without Cloudflare Workers being enabled, you can still do a lot of damage through the Cloudflare dashboard if you don’t know what you’re doing.

Slide 34

Slide 34 text

Further Reading • https://blog.cloudflare.com/diving-into-technical-seo- cloudflare-workers/ • https://searchengineland.com/service-workers-and-seo-seo- for-developers-311292 • https://salt.agency/blog/how-to-use-cdns-to-improve-seo- on-the-edge/

Slide 35

Slide 35 text

Thank You! @taylordanrw @salt_agency https://salt.agency