Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sbreker
Copy link
Member

@sbreker sbreker commented Jun 13, 2025

Extract the JS challenge from the Symfony filterchain, action, and template into
minimal PHP entry points. These new files run before Symfony’s autoloader is
invoked. Scripts are CSP‐compliant and use localStorage for state. Bypassing
the full framework bootstrap for bot and headless‐browser endpoints eliminates
unnecessary overhead and significantly improves request performance.

@sbreker sbreker force-pushed the dev/jschallenge-performance branch 7 times, most recently from b378e12 to 757819b Compare June 19, 2025 22:29
@sbreker sbreker force-pushed the dev/jschallenge-performance branch 2 times, most recently from 048d51c to 40e91d1 Compare June 20, 2025 23:34
@sbreker sbreker marked this pull request as ready for review June 23, 2025 17:46
@sbreker sbreker requested a review from a team June 23, 2025 18:12
Copy link
Contributor

@anvit anvit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have a question about a small change, everything else looks good!

\n
# Development-specific configuration
expose_php = on
opcache.validate_timestamps = on
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change related to this fix? I couldn't figure out why this was removed from the docker config.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Accidental leftover from trying to squeeze performance out of PHP. I will restore this line.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in most recent commit

@sbreker sbreker requested a review from anvit June 25, 2025 22:26
Copy link
Contributor

@anvit anvit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sbreker !

Extract the JS challenge from the Symfony filterchain, action, and
template into minimal PHP entry points. These new files run before
Symfony’s autoloader is invoked. Scripts are CSP‐compliant and use
localStorage for state. Bypassing the full Symfony framework for these
endpoints significantly improves request performance.

If the `config/appChallenge.yml` file is missing, AtoM's JS Challenge
feature will be deactivated.
@sbreker sbreker force-pushed the dev/jschallenge-performance branch from eb96ded to cfa587c Compare June 25, 2025 23:10
@sbreker sbreker merged commit cfa587c into qa/2.x Jun 25, 2025
6 checks passed
@anvit anvit added this to the 2.9.2 milestone Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants