discourse/lib/middleware
Osama Sayegh 919d07ebbc
DEV: Add occurred_at to browser pageview event payload (#39573)
The browser pageview events are triggered inside `log_later` which runs
asynchronously via `Scheduler::Defer`. This means plugins listening to
the `:browser_pageview` event cannot rely on `Time.zone.now` or
`created_at` timestamps to know exactly when the page view occurred.

By capturing `occurred_at` synchronously during request processing and
passing it through to the event payload, plugins can now accurately
record the time the page view happened.
2026-04-28 06:01:01 +03:00
..
anonymous_cache.rb DEV: Fix AnonymousCache for pitchfork in dev/test modes (#37852) 2026-02-17 09:12:02 +00:00
crawler_hooks.rb DEV: Check for setting prior to applying transformation on crawler view (#34478) 2025-08-22 14:17:45 +08:00
csp_script_nonce_injector.rb
default_headers.rb DEV: ensure Rails application default headers are present in responses (#31619) 2025-03-05 13:19:09 +08:00
discourse_public_exceptions.rb SECURITY: Error responses missing Cache-Control header 2025-10-28 14:40:41 +08:00
enforce_hostname.rb DEV: Simplify CORS logic for public asset routes (#33106) 2025-06-09 08:58:27 +01:00
missing_avatars.rb
omniauth_bypass_middleware.rb FIX: 'destination_url' cookie handling (#33072) 2025-08-06 10:09:01 +02:00
overload_protections.rb PERF: Reject anonymous requests with 503 upon aggressive queuing (#36519) 2025-12-18 10:23:42 +08:00
processing_request.rb PERF: Reject anonymous requests with 503 upon aggressive queuing (#36519) 2025-12-18 10:23:42 +08:00
request_tracker.rb DEV: Add occurred_at to browser pageview event payload (#39573) 2026-04-28 06:01:01 +03:00