litespeedtech / litespeedtech/openlitespeed

wrong header set when loading pre compressed js or css files

Open
#384 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.5k
Forks
233
Avg merge
2d 19h
Merged PRs (30d)
5

Description

Joomla 5 delivers already compressed files, but openlitespeed does not set the headers as it should be.

![Selection_003](https://github.com/litespeedtech/openlitespeed/assets/1035170/9cefba82-65b0-460b-b70d-71d43ad33981)

/public_html/media/plg_system_guidedtours/js/guidedtours.min.js.gz
/public_html/media/plg_system_guidedtours/js/guidedtours.min.js

Openlitespeed reads the .gz and delivers the content without the needed header "Content-Encoding: gzip"
Changing the tuning settings does not help in any way.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the response for /public_html/media/plg_system_guidedtours/js/guidedtours.min.js.gz and the matching .js file, then trace OpenLiteSpeed's static-file handling for pre-compressed assets. Verify the response headers, especially Content-Encoding: gzip; done means the compressed file is served with the needed header without relying on tuning settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.