On 2023-10-24 11:31, Jose Stefan wrote:
Hello,
I have a weird issue while using "H2Push". I'm turning it off, but
depending where it's nested it doesn't work as expected. Subset of
config shown at the end. I'm using version: 2.4.52-1ubuntu4.6 on Ubuntu
22.04 LTS.
With the code as presented, it still triggers a push for "fileC.css". I
expect NO push to happen as it is turned off before
the"H2PushResource..." line.
Quick question, not a solution. Does you php (or other static
environment) have any 'rel=preload'?
Here's where I'm confused. I've performed the following individual tests:
* If I use the "H2Push off" outside of the FilesMatch (and comment the
one inside), The push doesn't happen.
*
If I use both "H2Push off" and "H2PushResource..." outside of the
FilesMatch (and comment the ones inside), The push doesn't happen.
* If I comment out the "H2PushResource..." inside the FilesMatch, the
push doesn't happen. Therefore, I know the config is hitting that part.
It's only when both lines are inside the FilesMatch that I don't get the
expected results. Yet the context for h2push reads:
Context: server config, virtual host, directory, .htaccess
The plan, eventually, is to enable just the early hints and not the
push. But I haven't even gotten to testing that part yet. My version of
httpd doesn't support "H2EarlyHint".
Subset of the config:
----------
H2Push on
...
<IfModule mod_ssl.c>
<VirtualHost *:443>
...
<IfModule http2_module>
#H2EarlyHints on
#H2Push off
#H2PushResource /fileC.css
<FilesMatch "^(fileA|fileB)\.php$">
H2Push off
H2PushResource /fileC.css
#H2EarlyHint ... Available in version 2.4.58 and
later.
</FilesMatch>
</IfModule>
...
</VirtualHost>
</IfModule>...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org