profile
viewpoint
Yevgen Safronov sejoker Cloudflare London, UK

sejoker/awesome-jscodeshift 286

A curated list of jscodeshift packages and resources.

sejoker/code-splitting-example 7

Code-splitting with Webpack on the component level

Dorokhov/AzureTools 3

Free, open source tools for Microsoft Azure developers.

sejoker/babel-angular2-app 2

A super-simple skeleton Angular 2 app built with Babel and Browserify.

sejoker/algo-notes 0

My notes of learning and practicing algorithms

sejoker/angular-app 0

Reference application for AngularJS

sejoker/art-of-node 0

a short introduction to node.js

sejoker/awesome-investing 0

💸💸 Curated list of investment & finance related resources

issue commentcloudflare/Cloudflare-WordPress

Adjust Edge Cache TTL?

@kevinlisota for dynamic content which is a part of cacheable page I think Edge-Side-Include is the perfect answer. Please let us know if you would be interested in wrapping "popular & recently published posts" into esi block, so we could apply transformation on those pages automatically.

thekendog

comment created time in 12 days

issue commentcloudflare/Cloudflare-WordPress

Adjust Edge Cache TTL?

I believe most contact forms use nonces as well. I'm pretty sure Gravity Forms and Contact Form 7 do. So 30 days is going to cause those to not work.

Interesting use case. I looked into Contact Form plugin source code, according to the Changelog:

5.1.4

  • Creates a nonce only when the submitter is a logged-in user.

So we will bypass cache for logged-in user.

In general we can detect contact forms by inspecting urls (I suspect it will have contact or form as part of url). For those pages theoretically we can analyze html for nonce tokens. By combining those 2 factors we can set TTL to 8 hours on the pages.

Please let me know if someone has an existing page I can play with.

thekendog

comment created time in 12 days

issue commentcloudflare/Cloudflare-WordPress

Adjust Edge Cache TTL?

I have a page with data that updates every hour. Obviously 30 days is way too long.

WP plugin allows you to purge cache on each page publish, you can call Cache Purge API manually as well

It doesn't seem like this APO functionality is very flexible, which is a bummer.

It's not as flexible as other caching plugins on the market, we aim for simplicity of use. It trumps flexibility in our view.

thekendog

comment created time in 12 days

issue commentAliasIO/wappalyzer

Wappalyzer returns No response from server since version 6.3.0

Same stack for node 14.13.0.

sejoker

comment created time in 12 days

issue commentAliasIO/wappalyzer

Wappalyzer returns No response from server since version 6.3.0

wappalyzer | log | driver | Launching browser...
wappalyzer | log | page | Navigate to https://yadakpars.com/
wappalyzer | log | driver | Page closed
wappalyzer | error | driver | Error: No response from server
    at Site.goto (/Users/user/.nvm/versions/node/v12.14.0/lib/node_modules/wappalyzer/driver.js:753:13)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Site.analyze (/Users/user/.nvm/versions/node/v12.14.0/lib/node_modules/wappalyzer/driver.js:767:21)
    at async /Users/user/.nvm/versions/node/v12.14.0/lib/node_modules/wappalyzer/cli.js:87:21
{"urls":{"https://yadakpars.com/":{"status":0,"error":"No response from server"}},"technologies":[]}
wappalyzer | log | driver | Browser disconnected
wappalyzer | log | driver | Browser closed
sejoker

comment created time in 12 days

PR opened cloudflare/Cloudflare-WordPress

purge cache on new comment

Fixes https://github.com/cloudflare/Cloudflare-WordPress/issues/307

+1 -0

0 comment

1 changed file

pr created time in 12 days

create barnchsejoker/Cloudflare-WordPress

branch : APO-102

created branch time in 12 days

issue commentcloudflare/Cloudflare-WordPress

Adjust Edge Cache TTL?

There is no way for customers to change Edge caching TTL when APO is activated, I'm curious to know you use case.

Is there a way to disable certain pages from being cached? the only way I know is to hack around this code path: https://github.com/cloudflare/Cloudflare-WordPress/blob/master/src/WordPress/Hooks.php#L319-L321 and serve cf-edge-cache: no-cache for pages you want to exclude from caching with APO.

thekendog

comment created time in 13 days

issue openedAliasIO/wappalyzer

Wappalyzer returns No response from server since version 6.3.0

Platform Which platform does the bug apply to? MacOS 10.15.6, node v12.14.0, NPM 6.13.4

Describe the bug Since commit https://github.com/AliasIO/wappalyzer/commit/5de3c5299e8f85c83ddb667d357b79d1a9d424c5

wappalyzer https://yadakpars.com

returns:

{"urls":{"https://yadakpars.com/":{"status":0,"error":"No response from server"}},"technologies":[]}

To Reproduce Steps to reproduce the behavior:

  1. npm i wappalyzer -g
  2. wappalyzer https://yadakpars.com

Expected behavior Able to fetch technologies list when calling:

wappalyzer https://yadakpars.com

Additional context The problematic puppeteer settings which break everything is:

let chromiumArgs = [
 '--user-data-dir=/tmp/chromium'

created time in 14 days

issue commentcloudflare/Cloudflare-WordPress

Does APO even works?

Hi,

you should check x-via response header, most certainly it has value speedwp/origin,no-cache. In Chrome when DevTools are open browser add request cache-control: no-cache header. It could be disabled in Browser settings. I recommend using curl:

curl -svo /dev/null 'https://example.com' -H 'accept: text/html' 2>&1 | grep '< cf-cache-status'

or webpagetest.org.

kevinmrl

comment created time in 14 days

PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent

PR opened cloudflare/Cloudflare-WordPress

check if headers have been sent before setting cf-edge-cache

Don't set cf-edge-header if headers already sent. (Fixes #305, Fixes #302)

+6 -0

0 comment

1 changed file

pr created time in 15 days

create barnchsejoker/Cloudflare-WordPress

branch : fix-headers-sent

created branch time in 15 days

PullRequestReviewEvent
PullRequestReviewEvent

fork sejoker/wappalyzer

Identify technology on websites.

https://www.wappalyzer.com

fork in 23 days

PR opened cloudflare/cloudflare-plugin-frontend

set all APO values properly, fixes APO card rendering in CF dashboard

I forgot to set helper values for APO settings, this fixes APO card rendering in CF dashboard, it will indicate that WordPress and WP plugin has been detected.

+4 -1

0 comment

1 changed file

pr created time in 24 days

create barnchsejoker/cloudflare-plugin-frontend

branch : fix-apo-api-patch

created branch time in 24 days

PullRequestReviewEvent

push eventsejoker/cloudflare-plugin-frontend

Yevgen Safronov

commit sha 7f36aefef5e2e4c8175e159ff39c6145a8ba20a8

Automatic Platform Optimization card

view details

push time in a month

Pull request review commentcloudflare/Cloudflare-WordPress

add support for automatic_platform_optimization

 protected function isPluginSpecificCacheEnabled()             && $cacheSettingValue !== 'off';     } +    protected function isAutomaticPlatformOptimizationEnabled()+    {+        $cacheSettingObject = $this->dataStore->getPluginSetting(\CF\API\Plugin::SETTING_AUTOMATIC_PLATFORM_OPTIMIZATION);

I have added it in https://github.com/cloudflare/cloudflare-plugin-backend/pull/48

sejoker

comment created time in a month

PullRequestReviewEvent

create barnchsejoker/Cloudflare-WordPress

branch : automatic_platform_optimization

created branch time in a month

PR opened cloudflare/cloudflare-plugin-frontend

WIP: Automatic Platform Optimization card
  • connected to zone/settings/automatic_platform_optimization API
  • integrates with subscription purchasing
  • syncs API value with plugin setting automatic_platform_optimization

TODO:

  • subscription API integration with zone.automatic_platform_optimization
+185 -8

0 comment

6 changed files

pr created time in a month

issue commentGoogleChrome/lighthouse

Page Speed Insights Ignores CloudFlare's Rocket Loader

We are planing to allow Page Speed Insights to run RocketLoader.

Any news on a time line?

Rocket Loader should run during Page Speed Insights testing.

ScottTravisHartley

comment created time in a month

fork sejoker/cloudflare-plugin-frontend

A React/Redux front-end for Cloudflare's WordPress, Magento2, and cPanel plugins.

https://cloudflare.com

fork in a month

PullRequestReviewEvent
more